don't block sigterm otherwise a forked process that sends a sigterm to itself
never exits (gv), from anon
This commit is contained in:
parent
6b6dc6a617
commit
c77cd73835
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: mime_child.c,v 1.3 2006/11/28 18:45:32 christos Exp $ */
|
/* $NetBSD: mime_child.c,v 1.4 2006/11/29 01:25:28 christos Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2006 The NetBSD Foundation, Inc.
|
* Copyright (c) 2006 The NetBSD Foundation, Inc.
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#ifndef __lint__
|
#ifndef __lint__
|
||||||
__RCSID("$NetBSD: mime_child.c,v 1.3 2006/11/28 18:45:32 christos Exp $");
|
__RCSID("$NetBSD: mime_child.c,v 1.4 2006/11/29 01:25:28 christos Exp $");
|
||||||
#endif /* not __lint__ */
|
#endif /* not __lint__ */
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
@ -111,7 +111,9 @@ prepare_pipe(sigset_t *nset, int p[2])
|
||||||
* We _must_ ignore SIGINT and SIGPIPE or the child
|
* We _must_ ignore SIGINT and SIGPIPE or the child
|
||||||
* will end up in our earlier handlers.
|
* will end up in our earlier handlers.
|
||||||
*/
|
*/
|
||||||
(void)sigfillset(nset); /* XXX - ignore all of em? */
|
(void)sigemptyset(nset);
|
||||||
|
(void)sigaddset(nset, SIGINT);
|
||||||
|
(void)sigaddset(nset, SIGPIPE);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue