summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJacek Masiulaniec <jacekm@cvs.openbsd.org>2010-08-02 11:49:03 +0000
committerJacek Masiulaniec <jacekm@cvs.openbsd.org>2010-08-02 11:49:03 +0000
commit08e15da74cb230c3e0738bba6bf5c4d60bcd4689 (patch)
tree7d63fa29c24fbbc9a411777d7a9bd5da506add21 /usr.sbin
parent91c4ffd1f61ee7efa89d4b411e6e9f64d5dee078 (diff)
Ignore SIGPIPE, the delivery of which prevented /usr/sbin/sendmail from
relaying the server diagnostic back to the user (eg. "500 Line too long").
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/smtpd/enqueue.c3
1 files changed, 2 insertions, 1 deletions
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 <henning@bulabula.org>
@@ -188,6 +188,7 @@ enqueue(int argc, char *argv[])
}
signal(SIGALRM, sighdlr);
+ signal(SIGPIPE, SIG_IGN);
alarm(300);
fp = tmpfile();