diff --git a/main.c b/main.c index 46bd576..e06c74f 100644 --- a/main.c +++ b/main.c @@ -6,7 +6,7 @@ /* By: cchauvet content; - if (content->own_cmd == 0 && content->pid != -1 - && content->fd_in[0] != -2 && content->fd_out[0] != -2) + if (content->executable != NULL && content->own_cmd == 0 + && content->pid != -1 && content->fd_in[0] != -2 && content->fd_out[0] != -2) { waitpid(content->pid, &exit_status, 0); if (WIFSIGNALED(exit_status))