From a856bed399f8190951511f06e83890dfaed4c2b3 Mon Sep 17 00:00:00 2001 From: Craig Rodrigues Date: Thu, 25 May 2006 22:12:05 +0000 Subject: [PATCH] Ignore SIGPIPE signals on write() failures. We already check for write() failures and handle EPIPE. Failure to handle SIGPIPE was resulting in rpc.lockd terminating. PR: bin/97768 Reported by: Gea-Suan Lin MFC after: 1 day --- usr.sbin/rpc.lockd/kern.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/rpc.lockd/kern.c b/usr.sbin/rpc.lockd/kern.c index c7473f680ee1..978df6bcc370 100644 --- a/usr.sbin/rpc.lockd/kern.c +++ b/usr.sbin/rpc.lockd/kern.c @@ -151,6 +151,7 @@ client_request(void) signal(SIGHUP, (sig_t)client_cleanup); signal(SIGTERM, (sig_t)client_cleanup); + signal(SIGPIPE, SIG_IGN); /* Setup. */ (void)time(&owner.tod);