Don't syslog if the child exited normally
authorRichard Basch <probe@mit.edu>
Mon, 22 Jan 1996 04:55:26 +0000 (04:55 +0000)
committerRichard Basch <probe@mit.edu>
Mon, 22 Jan 1996 04:55:26 +0000 (04:55 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7353 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin.v4/server/admin_server.c

index c8d960a0ed93302316ea662ea6c830df26b18b00..24e79b84dceb4f0e89b9986df4d2aeef6131a143 100644 (file)
@@ -489,8 +489,9 @@ do_child(sig)
            pidarraysize--;
 #ifdef WAIT_USES_INT
            if (WIFEXITED(status) || WIFSIGNALED(status))
-               syslog(LOG_ERR, "child %d: termsig %d, retcode %d", pid,
-                      WTERMSIG(status), WEXITSTATUS(status));
+               if (WTERMSIG(status) || WEXITSTATUS(status))
+                   syslog(LOG_ERR, "child %d: termsig %d, retcode %d", pid,
+                          WTERMSIG(status), WEXITSTATUS(status));
 
 #else
            if (status.w_retcode || status.w_coredump || status.w_termsig)