diff options
author | Gilles Chehade <gilles@poolp.org> | 2019-07-04 20:10:14 +0200 |
---|---|---|
committer | Gilles Chehade <gilles@poolp.org> | 2019-07-04 20:10:14 +0200 |
commit | f43b708cf1d57842a15565d88b9dc06140568f05 (patch) | |
tree | 0018bdcac2ff2cc8c0292a2a742624e61f273193 /smtpd/lka.c | |
parent | Merge branch 'master' into portable (diff) | |
parent | sync (diff) | |
download | OpenSMTPD-f43b708cf1d57842a15565d88b9dc06140568f05.tar.xz OpenSMTPD-f43b708cf1d57842a15565d88b9dc06140568f05.zip |
Merge branch 'master' into portable
Diffstat (limited to 'smtpd/lka.c')
-rw-r--r-- | smtpd/lka.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/smtpd/lka.c b/smtpd/lka.c index 0d13720a..2a88fba2 100644 --- a/smtpd/lka.c +++ b/smtpd/lka.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lka.c,v 1.234 2019/06/13 11:45:34 eric Exp $ */ +/* $OpenBSD: lka.c,v 1.235 2019/06/27 05:14:49 martijn Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -364,9 +364,21 @@ lka_imsg(struct mproc *p, struct imsg *imsg) m_get_string(&m, &procname); m_end(&m); + m_create(p, IMSG_LKA_PROCESSOR_ERRFD, 0, 0, -1); + m_add_string(p, procname); + m_close(p); + lka_proc_forked(procname, imsg->fd); return; + case IMSG_LKA_PROCESSOR_ERRFD: + m_msg(&m, imsg); + m_get_string(&m, &procname); + m_end(&m); + + lka_proc_errfd(procname, imsg->fd); + shutdown(imsg->fd, SHUT_WR); + return; case IMSG_REPORT_SMTP_LINK_CONNECT: m_msg(&m, imsg); |