projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add put*ent functions for passwd/group files and similar for shadow
[musl]
/
src
/
process
/
posix_spawn.c
diff --git
a/src/process/posix_spawn.c
b/src/process/posix_spawn.c
index
c55907d
..
dd45012
100644
(file)
--- a/
src/process/posix_spawn.c
+++ b/
src/process/posix_spawn.c
@@
-152,7
+152,7
@@
int __posix_spawnx(pid_t *restrict res, const char *restrict path,
close(args.p[1]);
if (pid > 0) {
- if (read(args.p[0], &ec, sizeof ec)
<
sizeof ec) ec = 0;
+ if (read(args.p[0], &ec, sizeof ec)
!=
sizeof ec) ec = 0;
else waitpid(pid, &(int){0}, 0);
} else {
ec = -pid;