From ff7ba44c49eac5c086a012da3eb4140c4898e3da Mon Sep 17 00:00:00 2001 From: jacekm Date: Mon, 2 Aug 2010 11:49:02 +0000 Subject: [PATCH] Ignore SIGPIPE, the delivery of which prevented /usr/sbin/sendmail from relaying the server diagnostic back to the user (eg. "500 Line too long"). --- usr.sbin/smtpd/enqueue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/smtpd/enqueue.c b/usr.sbin/smtpd/enqueue.c index d514a96d4e4..0c840038d6a 100644 --- a/usr.sbin/smtpd/enqueue.c +++ b/usr.sbin/smtpd/enqueue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: enqueue.c,v 1.37 2010/06/02 19:16:53 chl Exp $ */ +/* $OpenBSD: enqueue.c,v 1.38 2010/08/02 11:49:02 jacekm Exp $ */ /* * Copyright (c) 2005 Henning Brauer @@ -188,6 +188,7 @@ enqueue(int argc, char *argv[]) } signal(SIGALRM, sighdlr); + signal(SIGPIPE, SIG_IGN); alarm(300); fp = tmpfile(); -- 2.20.1