12 static void _docommandv(const char *command
, char *argv
[], int do_path
)
18 fatal("vfork()", strerror(errno
));
22 (do_path
? execvp
: execv
)(command
, argv
);
24 nonfatal(command
, strerror(errno
));
29 waitpid(pid
, &status
, 0);
30 if (WEXITSTATUS(status
) != 0)
34 void docommandv(const char *command
, char *argv
[])
36 _docommandv(command
, argv
, 0);
39 void docommandvp(const char *command
, char *argv
[])
42 _docommandv(command
, argv
, 1);