wl1292 - mysql-test-run in autotest

Reset SIGCHLD before exec-ing
parent 91cb0fbc
...@@ -353,6 +353,7 @@ CPCD::Process::start() { ...@@ -353,6 +353,7 @@ CPCD::Process::start() {
setsid(); setsid();
writePid(getpgrp()); writePid(getpgrp());
if(runas(m_runas.c_str()) == 0){ if(runas(m_runas.c_str()) == 0){
signal(SIGCHLD, SIG_DFL);
do_exec(); do_exec();
} }
_exit(1); _exit(1);
...@@ -383,6 +384,7 @@ CPCD::Process::start() { ...@@ -383,6 +384,7 @@ CPCD::Process::start() {
if(runas(m_runas.c_str()) != 0){ if(runas(m_runas.c_str()) != 0){
_exit(1); _exit(1);
} }
signal(SIGCHLD, SIG_DFL);
do_exec(); do_exec();
_exit(1); _exit(1);
/* NOTREACHED */ /* NOTREACHED */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment