projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e74f3b0
)
make posix_spawn accept null pid pointer arguments
author
Rich Felker
<dalias@aerifal.cx>
Wed, 12 Feb 2014 06:03:07 +0000
(
01:03
-0500)
committer
Rich Felker
<dalias@aerifal.cx>
Wed, 12 Feb 2014 06:03:07 +0000
(
01:03
-0500)
this is a requirement in the specification that was overlooked.
src/process/posix_spawn.c
patch
|
blob
|
history
diff --git
a/src/process/posix_spawn.c
b/src/process/posix_spawn.c
index eb98f9f60725d077852fbd55bc24b5e57493f0e4..f675a13c37dbb59c2e912854ea854f35d0bc31c1 100644
(file)
--- a/
src/process/posix_spawn.c
+++ b/
src/process/posix_spawn.c
@@
-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);