commit 40f19171917d809d37d48bdaaddd1d47a4a911d1 parent e924662b76a58d98a708911edcc7cf59c9ee034d Author: Christoph Lohmann <20h@r-36.net> Date: Sat, 13 Jun 2020 21:52:10 +0200 Do not kill and close pid 0. Diffstat:
bmf-milter.c | | | 6 | ++++-- |
bmf-milter.o | | | 0 |
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/bmf-milter.c b/bmf-milter.c @@ -192,8 +192,10 @@ mlfi_close(SMFICTX *ctx) printf("mlfi_close\n"); if (priv != NULL) { - close(priv->execpipe[1]); - kill(priv->execpid, SIGKILL); + if (priv->execpipe[1] != 0) + close(priv->execpipe[1]); + if (priv->execpid != 0) + kill(priv->execpid, SIGKILL); free(priv); smfi_setpriv(ctx, NULL); } diff --git a/bmf-milter.o b/bmf-milter.o Binary files differ.