projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5989a29
)
Don't ignore SIGCHLD, system() needs it.
author
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 3 Jun 2011 13:50:20 +0000
(15:50 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 3 Jun 2011 13:50:20 +0000
(15:50 +0200)
But we do ignore SIGPIPE, and tinc 1.0.x signals that are no longer used
(SIGUSR1 and SIGUSR2), since the default handler of these signals is to
terminate tincd immediately.
src/process.c
patch
|
blob
|
history
diff --git
a/src/process.c
b/src/process.c
index 89678349c0f97821deddcad58826d3cfe572bd55..8c6679b808a4ceff0f4058e90217f7e88afc55fb 100644
(file)
--- a/
src/process.c
+++ b/
src/process.c
@@
-224,7
+224,10
@@
bool init_service(void) {
bool detach(void) {
#ifndef HAVE_MINGW
signal(SIGALRM, SIG_IGN);
- signal(SIGCHLD, SIG_IGN);
+ signal(SIGPIPE, SIG_IGN);
+ signal(SIGUSR1, SIG_IGN);
+ signal(SIGUSR2, SIG_IGN);
+ signal(SIGWINCH, SIG_IGN);
closelogger();
#endif