summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <ndbdev@ndbmaster.mysql.com>2004-09-08 11:18:22 +0200
committerunknown <ndbdev@ndbmaster.mysql.com>2004-09-08 11:18:22 +0200
commite2a42454b8cd1a058ed4c1bb3398acaeaaa52509 (patch)
treec800bfae82abe462fd6c01cb27dcde42518f34cf
parentd69d79377c1ca3e5c60f60c535292f65bef19110 (diff)
downloadmariadb-git-e2a42454b8cd1a058ed4c1bb3398acaeaaa52509.tar.gz
wl1292 - mysql-test-run in autotest
Reset SIGCHLD before exec-ing ndb/src/cw/cpcd/Process.cpp: Reset SIGCHLD before exec-ing
-rw-r--r--ndb/src/cw/cpcd/Process.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ndb/src/cw/cpcd/Process.cpp b/ndb/src/cw/cpcd/Process.cpp
index 0a986f63fda..c38b2a45145 100644
--- a/ndb/src/cw/cpcd/Process.cpp
+++ b/ndb/src/cw/cpcd/Process.cpp
@@ -353,6 +353,7 @@ CPCD::Process::start() {
setsid();
writePid(getpgrp());
if(runas(m_runas.c_str()) == 0){
+ signal(SIGCHLD, SIG_DFL);
do_exec();
}
_exit(1);
@@ -383,6 +384,7 @@ CPCD::Process::start() {
if(runas(m_runas.c_str()) != 0){
_exit(1);
}
+ signal(SIGCHLD, SIG_DFL);
do_exec();
_exit(1);
/* NOTREACHED */