X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-6.4 required=5.0	tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4D6D8A8D.3060509@redhat.com>
Date: Tue, 01 Mar 2011 17:08:45 -0700
From: Eric Blake <eblake@redhat.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: 1.7.8-1 ls -l /proc/sys/Device causes system reset
References: <242664.64054.qm@web161702.mail.bf1.yahoo.com>
In-Reply-To: <242664.64054.qm@web161702.mail.bf1.yahoo.com>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig4ABF50F73996B077E58F774A"
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

--------------enig4ABF50F73996B077E58F774A
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 03/01/2011 04:57 PM, Tim Coalson wrote:
> The problem:
>=20
> $ /bin/ls -l /proc/sys/Device
>=20
> hit enter, and my system instantly reboots, without shutdown.  Without th=
e -l=20
> option, works fine.  Unfortunately, ls with colors enabled also causes th=
is=20
> behavior, even without -l, as in:
>=20
> $ /bin/ls --color=3Dauto /proc/sys/Device

That's because ls --color=3Dauto enables stat() to know how to color
names, where omitting it relies on plain readdir() to just list the
name.  So it's obviously the act of stat()ing one of the devices in that
directory that is making windows upset.  Can you narrow it down to which
object, by trying things like 'ls --color=3Dauto -d
/proc/sys/Device/[0-9]*' to limit to stat()ing just file names starting
with a digit, and so forth?  I couldn't reproduce your crash on my WinXP
system.

--=20
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enig4ABF50F73996B077E58F774A
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJNbYqNAAoJEKeha0olJ0NqKawIAKAaytpDaxcNWI2AJGKJplju
ZdVZGuCFju0ykyZha4LS1V5BBvFhu+V4AERSzQr9C3FRSw3F/PBKrZylwZgqQU7/
QVRgbeUNyohqUzUQRLiXLwVmDoSmLuWD8g8/Soq4LZdIGPYnPqhfU6wDo8x9BybC
W9tn+jFWC6UxGKRM4rpBeXaeCNYr/upHrYVA1equc6gvmpKNPb8mPj+qdcOEHtjb
2Tevz13YsO+EdpTgoZABgkveEODZM6egjWatLWUqoFx8Z3RbQ/QZZmvf5Edkktfi
CYYfDLu5l5FmbFQX1SBmtt2WC5b9QkItnEg35SuP1Yq0QNmJHnEbyFKChaJA5AA=
=JWWo
-----END PGP SIGNATURE-----

--------------enig4ABF50F73996B077E58F774A--
