aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/sendmail/camel-sendmail-transport.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers/sendmail/camel-sendmail-transport.c')
-rw-r--r--camel/providers/sendmail/camel-sendmail-transport.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/camel/providers/sendmail/camel-sendmail-transport.c b/camel/providers/sendmail/camel-sendmail-transport.c
index 2feefc4b21..15ba1f04e1 100644
--- a/camel/providers/sendmail/camel-sendmail-transport.c
+++ b/camel/providers/sendmail/camel-sendmail-transport.c
@@ -114,7 +114,8 @@ _send_internal (CamelMedium *message, char **argv, CamelException *ex)
sigaddset (&mask, SIGCHLD);
sigprocmask (SIG_BLOCK, &mask, &omask);
- switch (fork ()) {
+ pid = fork ();
+ switch (pid) {
case -1:
camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
"Could not fork sendmail: "