This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/22273] Improper assert in Linux posix_spawn implementation
- From: "adhemerval.zanella at linaro dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 12 Oct 2017 13:40:29 +0000
- Subject: [Bug libc/22273] Improper assert in Linux posix_spawn implementation
- Auto-submitted: auto-generated
- References: <bug-22273-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=22273
--- Comment #7 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
(In reply to Andreas Schwab from comment #6)
> You need to use a positive error number, not -1.
Indeed and still it won't help the case where the process is killed after
setting args.err to 0 and I do not see how to correctly report it to user.
Even if we check waitpid unconditionally (with WNOHANG) for ec != 0 it might a
case where the required program runs and it is killed just before the actual
waitpid test. Any idea?
--
You are receiving this mail because:
You are on the CC list for the bug.