From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 19 Jun 2007 14:53:37 -0400 From: Kris Maglione To: 9fans@cse.psu.edu Subject: Re: [9fans] equivalent of fstat | grep $portnumber ? Message-ID: <20070619185337.GF67517@kris.home> References: <20070619161347.GA67517@kris.home> <14ec7b180706190917j3d1f2edbt68ef2c8d5df9f8cc@mail.gmail.com> <20070619164902.GB67517@kris.home> <14ec7b180706190953x7a25471crbad6ec13e9763960@mail.gmail.com> <20070619165749.GC67517@kris.home> <14ec7b180706191016w6062421am906a8578cd62be12@mail.gmail.com> <20070619173818.GD67517@kris.home> <1182276570.25089.53.camel@work.sfbay.sun.com> <20070619180814.GE67517@kris.home> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dWYAkE0V1FpFQHQ3" Content-Disposition: inline In-Reply-To: <20070619180814.GE67517@kris.home> User-Agent: Mutt/1.5.15 (2007-04-06) Topicbox-Message-UUID: 8216ff1e-ead2-11e9-9d60-3106f5b1d025 --dWYAkE0V1FpFQHQ3 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 19, 2007 at 02:08:14PM -0400, Kris Maglione wrote: > Redirecting to /dev/null. The only real issue with the race is that there= 's=20 > an error message printed. Hiding the error message from grep is basically= =20 > the same as not printing it in lsof.c. Admittedly, I introduced another such race when I lazily decided to use=20 ls instead of tr to split the files into lines. f =3D `{echo $f | tr ' ' '\012' | sort ...} --=20 Kris Maglione No experiment is ever a complete failure. It can always be used as a bad example. --dWYAkE0V1FpFQHQ3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iD8DBQFGeCYwseQZD8Aui4wRAvb9AJ9N/xYxrYEbBqcB6qmfR0ouIYokoQCcDvhe F5sBb8K9UT7vjULBPflbLX4= =y8BY -----END PGP SIGNATURE----- --dWYAkE0V1FpFQHQ3--