summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-22 08:07:12 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-22 08:07:12 +0000
commit65aa6b9a51021d30f106191f6747eccb20e9f579 (patch)
tree3c7ace85c2b792a4dad7ef30f6b849de8630e784 /signal.c
parentbe21791e57c1779933696f26968d1562e6cf2218 (diff)
downloadruby-65aa6b9a51021d30f106191f6747eccb20e9f579.tar.gz
* signal.c (Init_signal): avoid duplicated installation of SIGCHLD
handler. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/signal.c b/signal.c
index 2c0003520e..4b154b8301 100644
--- a/signal.c
+++ b/signal.c
@@ -968,10 +968,9 @@ Init_signal(void)
install_sighandler(SIGPIPE, sigpipe);
#endif
-#ifdef SIGCLD
+#if defined(SIGCLD)
init_sigchld(SIGCLD);
-#endif
-#ifdef SIGCHLD
+#elif defined(SIGCHLD)
init_sigchld(SIGCHLD);
#endif