wl1292 - mysql-test-run in autotest

Reset SIGCHLD before exec-ing
This commit is contained in:
ndbdev@ndbmaster.mysql.com 2004-09-08 11:18:22 +02:00
parent 91cb0fbc82
commit 44d34cb6d0

View file

@ -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 */