This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/15661] posix_fallocate fallback code buggy and dangerous
- From: "bugdal at aerifal dot cx" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sat, 14 Jun 2014 03:49:04 +0000
- Subject: [Bug libc/15661] posix_fallocate fallback code buggy and dangerous
- Auto-submitted: auto-generated
- References: <bug-15661-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=15661
--- Comment #3 from Rich Felker <bugdal at aerifal dot cx> ---
In comment #1, I suggested using clone with a signal/flags argument of 0 to
avoid generating SIGCHLD. To wait for such a child, you use waidpid with
__WCLONE. So I think there is a viable workaround, but I'm not sure if it's
desirable. Just returning an error rather than attempting to emulate the
operation may be preferable. In any case, the current behavior should be
removed ASAP because it causes file corruption.
--
You are receiving this mail because:
You are on the CC list for the bug.