Skip to content

Commit

Permalink
mxqd: return failure when fork fails in setup_cronolog
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Oct 8, 2015
1 parent 51863ec commit 61065a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mxqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ int setup_cronolog(char *cronolog, char *link, char *format)
pid = fork();
if (pid < 0) {
mx_log_err("cronolog fork failed: %m");
return 1;
return 0;
} else if(pid == 0) {
res = dup2(pipe_fd[0], STDIN_FILENO);
if (res == -1) {
Expand Down

0 comments on commit 61065a9

Please sign in to comment.