mirror of
git://git.musl-libc.org/musl
synced 2025-03-31 07:38:26 +00:00
make posix_spawn accept null pid pointer arguments
this is a requirement in the specification that was overlooked.
This commit is contained in:
parent
e74f3b0234
commit
8011614da0
@ -166,7 +166,7 @@ int __posix_spawnx(pid_t *restrict res, const char *restrict path,
|
||||
|
||||
close(args.p[0]);
|
||||
|
||||
if (!ec) *res = pid;
|
||||
if (!ec && res) *res = pid;
|
||||
|
||||
pthread_sigmask(SIG_SETMASK, &args.oldmask, 0);
|
||||
pthread_setcancelstate(cs, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user