summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/process/posix_spawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process/posix_spawn.c b/src/process/posix_spawn.c
index af127317..0bdf71cd 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);
}