]> Sergey Matveev's repositories - bfs.git/blobdiff - src/xspawn.c
bfstd: New xwaitpid() wrapper
[bfs.git] / src / xspawn.c
index 7fb63e0be3ca318ab29e3aae403b495af946e019..64759e0f3e337423c265b2bb43b5f1ff88359118 100644 (file)
@@ -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;
        }