Tidy up the exit() arguments.

This commit is contained in:
Mike Brady
2019-04-10 21:32:08 +01:00
parent 449a9be55e
commit 57bcea52c7
6 changed files with 14 additions and 16 deletions
+2 -3
View File
@@ -65,9 +65,8 @@ static int fork_execvp(const char *file, char *const argv[]) {
// Write erno's value into the pipe and exit.
if (write(execpipe[1], &errno, sizeof(errno)) != sizeof(errno))
debug(1, "Execve has failed and there was a further error writing an error message, duh.");
debug(1, "execve has failed.");
_exit(-1);
return 0; // Just to make the compiler happy.
die("mdns_external: execve has failed.");
// return 0; // Just to make the compiler happy.
} else { // Parent
close(execpipe[1]); // Close the write end