Mercurial > masqmail
diff src/fail_msg.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 | 82d168dd52fd |
children | 41958685480d |
line wrap: on
line diff
--- a/src/fail_msg.c Thu Dec 02 16:52:39 2010 -0300 +++ b/src/fail_msg.c Thu Dec 02 17:11:25 2010 -0300 @@ -100,8 +100,8 @@ fclose(out); waitpid(pid, &status, 0); - if ((WEXITSTATUS(status) != EXIT_SUCCESS) || WIFSIGNALED(status)) { - if (WEXITSTATUS(status) != EXIT_SUCCESS) + if ((WEXITSTATUS(status) != 0) || WIFSIGNALED(status)) { + if (WEXITSTATUS(status) != 0) logwrite(LOG_WARNING, "child returned %d\n", WEXITSTATUS(status)); if (WIFSIGNALED(status)) logwrite(LOG_WARNING, "child got signal: %d\n", WTERMSIG(status));