-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Steve McIntyre wrote:

>On Tue, Feb 10, 2004 at 07:23:43PM -0500, Derek Robert Price wrote:
>
>>Larry Jones wrote:
>>
>>>Derek Robert Price writes:
>>>
>>>>Yep, it just needed fflushes.  Working patch attached.  Comments before
>>>>I commit?
>>>
>>>
>>>fflush()/close() is a no-no -- you want fclose() instead.  Once you've
>>>attached a stream to a file descriptor, you have to be very careful
>>>about what you do to the file descriptor -- it's best to only use the
>>>stream from then on.
>>
>>
>>Why, if you don't mind me asking?  I couldn't find a man page for a file
>>descriptor flush - is there some way I could have flushed the pipe
>>without attaching the stream?
>
>
>fsync() or fdatasync() should do what you want here. Although you
>_should_ be able to mix stream and fd operations normally - stdio is
>meant to do the right thing AFAIK. But now I can't find the reference
>I had that said so, of course.


I tired fsync() and sync() originally and they didn't work.  I just
tried fdatasync() and it doesn't work either.  Keep in mind that these
are pipes and not files.

Derek

- --
                *8^)

Email: [EMAIL PROTECTED]

Get CVS support at <http://ximbiot.com>!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Netscape - http://enigmail.mozdev.org

iD8DBQFAKXtILD1OTBfyMaQRAp/OAKDfuPD+7TSn8XPOaC/BVLuTXP8lgwCfTaM4
Lb4uMQLVeK3YjuzSRxSbzfY=
=w+d0
-----END PGP SIGNATURE-----




_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to