Skip to content

Commit

Permalink
exit parent process with child exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmm committed Sep 10, 2014
1 parent 641eb1b commit 0fa8f7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nik.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ void sethostfile(int nspid, char* hostfile) {
int status;
waitpid(pid, &status, 0);
errno = status;
if (errno != 0) exit(errno);
}
return;
Expand Down

0 comments on commit 0fa8f7f

Please sign in to comment.