# HG changeset patch # User markus schnalke # Date 1310634927 -7200 # Node ID 53cf6be5843a40e1d3eba8b5af069ad074c7217b # Parent 1ca9bc4c65523ca464e5d1aacd501a80ad03bcfa Minor refactoring diff -r 1ca9bc4c6552 -r 53cf6be5843a src/smtp_in.c --- a/src/smtp_in.c Thu Jul 14 10:06:36 2011 +0200 +++ b/src/smtp_in.c Thu Jul 14 11:15:27 2011 +0200 @@ -351,10 +351,11 @@ DEBUG(1) debugf("queuing forced by configuration or option.\n"); } else { pid = fork(); - if (pid == 0) { + if (pid < 0) { + logwrite(LOG_ALERT, "could not fork for delivery, id = %s\n", msg->uid); + } else if (pid == 0) { + /* FIXME: most likely inverted exit code */ _exit(deliver(msg)); - } else if (pid < 0) { - logwrite(LOG_ALERT, "could not fork for delivery, id = %s\n", msg->uid); } } psc->rcpt_seen = psc->from_seen = FALSE;