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 diff
     1.1 --- a/src/fail_msg.c	Thu Dec 02 16:52:39 2010 -0300
     1.2 +++ b/src/fail_msg.c	Thu Dec 02 17:11:25 2010 -0300
     1.3 @@ -100,8 +100,8 @@
     1.4  
     1.5  				fclose(out);
     1.6  				waitpid(pid, &status, 0);
     1.7 -				if ((WEXITSTATUS(status) != EXIT_SUCCESS) || WIFSIGNALED(status)) {
     1.8 -					if (WEXITSTATUS(status) != EXIT_SUCCESS)
     1.9 +				if ((WEXITSTATUS(status) != 0) || WIFSIGNALED(status)) {
    1.10 +					if (WEXITSTATUS(status) != 0)
    1.11  						logwrite(LOG_WARNING, "child returned %d\n", WEXITSTATUS(status));
    1.12  					if (WIFSIGNALED(status))
    1.13  						logwrite(LOG_WARNING, "child got signal: %d\n", WTERMSIG(status));