summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2005-12-08 23:54:05 +0000
committerStef Walter <stef@memberwebs.com>2005-12-08 23:54:05 +0000
commitddaf4d947759d963588ac5636f7a8f9b8b4809aa (patch)
treee1945c7113d035919624c654e53a3dfc5b0b4e97
parentc25be954c4a05dc4a8df0248e132091145c02857 (diff)
Fix problem when waiting for processes.
-rw-r--r--AUTHORS1
-rw-r--r--ChangeLog1
-rw-r--r--src/proxsmtpd.c2
3 files changed, 3 insertions, 1 deletions
diff --git a/AUTHORS b/AUTHORS
index 030c777..cedc373 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -18,3 +18,4 @@ Piotr Klaban <post@klaban.torun.pl>
Greg Hackney <hackney@swbell.net>
Billy B. Bilano <mr.bill.bilano@email.server.unix.bill.bilano.biz>
Loic Le Loarer <loic.le-loarer@polytechnique.org>
+Jeff Fisher <jeff@lfchosting.com>
diff --git a/ChangeLog b/ChangeLog
index 90e5a75..97c1637 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
1.4 [???]
- Fix crasher after connection closes unexpectedly.
+ - Fix problem with waiting for processes [Jeff Fisher]
1.3 [2005-10-21]
- Handle condition of server refusing data transfers more gracefully.
diff --git a/src/proxsmtpd.c b/src/proxsmtpd.c
index 288e3d4..9bd25ac 100644
--- a/src/proxsmtpd.c
+++ b/src/proxsmtpd.c
@@ -873,7 +873,7 @@ static int wait_process(spctx_t* sp, pid_t pid, int* status)
case 0:
break;
case -1:
- if(errno != ECHILD || errno != ESRCH)
+ if(errno != ECHILD && errno != ESRCH)
{
sp_message(sp, LOG_CRIT, "error waiting on process");
return -1;