[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Spam: Re: lossage due to non-blocking stderr
From: |
Mark D. Baushke |
Subject: |
Re: Spam: Re: lossage due to non-blocking stderr |
Date: |
Tue, 24 Aug 2004 21:45:13 -0700 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Larry Jones <lawrence.jones@ugsplm.com> writes:
> Mark D. Baushke writes:
> >
> > Does anyone see any problems with this patch?
>
> Only that mixing file descriptor operations
> (like select) with stdio is best described as
> "here there be dragons". It seems to me that it
> would be a whole lot better to ensure that the
> file descriptors are in blocking mode like stdio
> (and thus CVS) expects rather than trying to
> fight to make them work in non-blocking mode.
Sigh, yeah there are indeed dragons in this one.
(I would love to know how to fix this in a
portable manner...)
I suppose the real solution is probably to eschew
use of stdio in CVS, but that is rather more work
than I am prepared to attempt at present myself.
Here is a test case for you to use on any version
of cvs you wish (assuming that the one added to
sanity.sh is not sufficient.)
-- Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)
iD8DBQFBLBlZ3x41pRYZE/gRAgBLAKCwyHlUKgD07AZNzQ7/PfvRr4h00ACfY2Jn
CUXXTpQSJ3N29ynnsgghHyY=
=K/Ue
-----END PGP SIGNATURE-----