@@ -90,7 +90,7 @@ static void populate_termination(Termination *term, int status) {
|
||||
static void os_spawn_process_posix(const char *exe, ZigList<const char *> &args, Termination *term) {
|
||||
pid_t pid = fork();
|
||||
if (pid == -1)
|
||||
zig_panic("fork failed");
|
||||
zig_panic("fork failed: %s", strerror(errno));
|
||||
if (pid == 0) {
|
||||
// child
|
||||
const char **argv = allocate<const char *>(args.length + 2);
|
||||
@@ -806,7 +806,7 @@ static int os_exec_process_posix(const char *exe, ZigList<const char *> &args,
|
||||
|
||||
pid_t pid = fork();
|
||||
if (pid == -1)
|
||||
zig_panic("fork failed");
|
||||
zig_panic("fork failed: %s", strerror(errno));
|
||||
if (pid == 0) {
|
||||
// child
|
||||
if (dup2(stdin_pipe[0], STDIN_FILENO) == -1)
|
||||
|
||||
Reference in New Issue
Block a user