From 6beb74f53508f0f92ad5ed0fe7e823b6a5be76f3 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Sat, 8 Apr 2000 21:53:24 +0000 Subject: actually record the pid returned by fork(). Noticed by clahey. * providers/sendmail/camel-sendmail-transport.c (_send_internal): actually record the pid returned by fork(). Noticed by clahey. svn path=/trunk/; revision=2342 --- camel/ChangeLog | 3 +++ camel/providers/sendmail/camel-sendmail-transport.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index 3fac98601e..254ae3aa8e 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,8 @@ 2000-04-08 Dan Winship + * providers/sendmail/camel-sendmail-transport.c (_send_internal): + actually record the pid returned by fork(). Noticed by clahey. + * providers/smtp/camel-smtp-transport.c: #include for MAXHOSTNAMELEN. (This is a stopgap: some of the uses of MAXHOSTNAMELEN are wrong anyway...) 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: " -- cgit v1.2.3