This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/4656] FILE* operations are not robust enough with signals
- From: "nix at esperi dot org dot uk" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 22 Sep 2007 19:40:43 -0000
- Subject: [Bug libc/4656] FILE* operations are not robust enough with signals
- References: <20070618100510.4656.madcoder@debian.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From nix at esperi dot org dot uk 2007-09-22 19:40 -------
This patch turns out to be a seriously bad idea, because no other libcs
preserve the stdio buffer state on error. At least bash, zsh, and rpc.mountd in
all released versions of nfs-utils are known to fail with this patch applied,
with rpc.mountd failing in such a way that NFS service appears to entirely fail
because no fhs can be validated. (Also several of glibc's own tests fail.)
Ideally you'd think it would be better: it's avoiding data loss. But a lot of
programs are *expecting* data loss in this situation, and avoiding it makes
them misbehave...
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4656
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.