diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-10-31 13:25:04 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-10-31 13:25:30 -0400 |
commit | 8aaf670c13ade259f7bcdd50332968c1c6290b34 (patch) | |
tree | 8794f55c7777f560c37ebcebb78a4a6be30d92f1 /src/xspawn.c | |
parent | 06ee53d5b1fc58073aaa3d57f6073256d13502f2 (diff) | |
download | bfs-8aaf670c13ade259f7bcdd50332968c1c6290b34.tar.xz |
bfstd: New xwaitpid() wrapper
Diffstat (limited to 'src/xspawn.c')
-rw-r--r-- | src/xspawn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xspawn.c b/src/xspawn.c index 7fb63e0..64759e0 100644 --- a/src/xspawn.c +++ b/src/xspawn.c @@ -234,7 +234,7 @@ pid_t bfs_spawn(const char *exe, const struct bfs_spawn *ctx, char **argv, char xclose(pipefd[0]); if (nbytes == sizeof(error)) { int wstatus; - waitpid(pid, &wstatus, 0); + xwaitpid(pid, &wstatus, 0); errno = error; return -1; } |