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 <gslin at csie dot nctu dot edu dot tw>
MFC after:	1 day
This commit is contained in:
Craig Rodrigues 2006-05-25 22:12:05 +00:00
parent bc5521260c
commit a856bed399
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158921

View File

@ -151,6 +151,7 @@ client_request(void)
signal(SIGHUP, (sig_t)client_cleanup); signal(SIGHUP, (sig_t)client_cleanup);
signal(SIGTERM, (sig_t)client_cleanup); signal(SIGTERM, (sig_t)client_cleanup);
signal(SIGPIPE, SIG_IGN);
/* Setup. */ /* Setup. */
(void)time(&owner.tod); (void)time(&owner.tod);