PR # 3271: ignore SIGPIPE to avoid nasty clients causing apmd to die.

From Lennart Augustsson <augustss@cs.chalmers.se>.
This commit is contained in:
jtk 1997-03-01 19:10:49 +00:00
parent df7f40213a
commit 46764eff41
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: apmd.c,v 1.4 1996/09/25 00:53:49 jtc Exp $ */
/* $NetBSD: apmd.c,v 1.5 1997/03/01 19:10:49 jtk Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -397,6 +397,7 @@ main(int argc, char *argv[])
(void) signal(SIGTERM, sigexit);
(void) signal(SIGHUP, sigexit);
(void) signal(SIGINT, sigexit);
(void) signal(SIGPIPE, SIG_IGN);
sock_fd = bind_socket(sockname, mode, uid, gid);