Ignore SIGPIPE, the delivery of which prevented /usr/sbin/sendmail from
authorjacekm <jacekm@openbsd.org>
Mon, 2 Aug 2010 11:49:02 +0000 (11:49 +0000)
committerjacekm <jacekm@openbsd.org>
Mon, 2 Aug 2010 11:49:02 +0000 (11:49 +0000)
relaying the server diagnostic back to the user (eg. "500 Line too long").

usr.sbin/smtpd/enqueue.c

index d514a96..0c84003 100644 (file)
@@ -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();