Message ID | 20200923105126.13566-1-efraim@flashner.co.il |
---|---|
State | New |
Headers | show |
Series | posix: Don't automatically fail if _LIBC_REENTRANT isn't defined. | expand |
* Efraim Flashner: > diff --git a/sysdeps/posix/system.c b/sysdeps/posix/system.c > index a03f478fc7..19d07d2581 100644 > --- a/sysdeps/posix/system.c > +++ b/sysdeps/posix/system.c > @@ -101,7 +101,7 @@ cancel_handler (void *arg) > static int > do_system (const char *line) > { > - int status = -1; > + int status = 0; > int ret; > pid_t pid; > struct sigaction sa; I don't think this is correct. You are just hiding an error return from posix_spawn, I think. A test case (against unpatched glibc) would help to clarify what you are looking for. Thanks, Florian -- Red Hat GmbH, https://de.redhat.com/ , Registered seat: Grasbrunn, Commercial register: Amtsgericht Muenchen, HRB 153243, Managing Directors: Charles Cachera, Brian Klemm, Laurie Krebs, Michael O'Neill
diff --git a/sysdeps/posix/system.c b/sysdeps/posix/system.c index a03f478fc7..19d07d2581 100644 --- a/sysdeps/posix/system.c +++ b/sysdeps/posix/system.c @@ -101,7 +101,7 @@ cancel_handler (void *arg) static int do_system (const char *line) { - int status = -1; + int status = 0; int ret; pid_t pid; struct sigaction sa;