Mercurial > masqmail
comparison src/online.c @ 262:fc1c6425c024
s/EXIT_SUCCESS/0/ && s/EXIT_FAILURE/1/
The constants are all to bulky.
We should have different, meaningful exit codes anyway.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Thu, 02 Dec 2010 17:11:25 -0300 |
parents | 3708b655a371 |
children | 1aa107c6b1e5 |
comparison
equal
deleted
inserted
replaced
261:0afe18a9ee03 | 262:fc1c6425c024 |
---|---|
62 logwrite(LOG_ALERT, "nothing read from pipe %s\n", pipe); | 62 logwrite(LOG_ALERT, "nothing read from pipe %s\n", pipe); |
63 name = NULL; | 63 name = NULL; |
64 } | 64 } |
65 fclose(in); | 65 fclose(in); |
66 waitpid(pid, &status, 0); | 66 waitpid(pid, &status, 0); |
67 if (WEXITSTATUS(status) != EXIT_SUCCESS) { | 67 if (WEXITSTATUS(status) != 0) { |
68 g_free(name); | 68 g_free(name); |
69 name = NULL; | 69 name = NULL; |
70 } | 70 } |
71 | 71 |
72 signal(SIGCHLD, old_signal); | 72 signal(SIGCHLD, old_signal); |