This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/15661] posix_fallocate fallback code buggy and dangerous


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]