diff options
author | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2008-12-22 12:56:22 +0000 |
---|---|---|
committer | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2008-12-22 12:56:22 +0000 |
commit | 1b42777678976e557e500a935c732024e5b89f72 (patch) | |
tree | 8b72d0032ad4225b6364c72f213a0a822c701736 | |
parent | 196112a6deafcb350fa2cdac09c29b429fa9905b (diff) |
Remove entry from mdaproctree after reaping mda child; ok gilles@
From: Nicholas Marriott <nicholas.marriott@gmail.com>
-rw-r--r-- | usr.sbin/smtpd/smtpd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c index 01d0e84b608..8226c3e7f42 100644 --- a/usr.sbin/smtpd/smtpd.c +++ b/usr.sbin/smtpd/smtpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.c,v 1.18 2008/12/21 02:18:46 gilles Exp $ */ +/* $OpenBSD: smtpd.c,v 1.19 2008/12/22 12:56:21 jacekm Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -476,6 +476,8 @@ parent_sig_handler(int sig, short event, void *p) log_debug("DEBUG: external mda process has terminated in a baaaad way"); } + SPLAY_REMOVE(mdaproctree, &env->mdaproc_queue, + mdaproc); free(mdaproc); } } while (pid > 0 || (pid == -1 && errno == EINTR)); |