bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stdio buffer flushing on redirection


From: Eric Blake
Subject: Re: stdio buffer flushing on redirection
Date: Sun, 06 Jan 2008 06:34:46 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

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

According to Tom Alsberg on 1/6/2008 4:30 AM:
| Given the recent storm of applied patches from the list, I was
| wondering if anybody had the time to look at this one.  Does it do the
| trick?  Is the bug at all reproducible (with the script I quoted)
| elsewhere?  If there is anything that should be changed in it, or
| inhibiting it from getting in, let me know.

Yes the bug is reproducible, and I've already reported it several months
ago from the perspective of cygwin.  My patch for cygwin used
freopen(NULL,mode,stdout) instead of fpurge, with mode chosen correctly
based on whether the underlying stream is in append mode, but that is
equally unportable to other platforms.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHgNj284KuGfSFAYARAp81AJoDTcbBje8acNYfZC7LDZTJS8cyVQCeO8mf
E4FQDM2TufD0YBXd0dpVWaY=
=61fD
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]