diff options
-rw-r--r-- | src/process/posix_spawn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process/posix_spawn.c b/src/process/posix_spawn.c index af12731..0bdf71c 100644 --- a/src/process/posix_spawn.c +++ b/src/process/posix_spawn.c @@ -136,7 +136,7 @@ static int child(void *args_vp) fail: /* Since sizeof errno < PIPE_BUF, the write is atomic. */ ret = -ret; - if (ret) while (write(p, &ret, sizeof ret) < 0); + if (ret) while (__syscall(SYS_write, p, &ret, sizeof ret) < 0); _exit(127); } |