mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
wl1292 - mysql-test-run in autotest
Reset SIGCHLD before exec-ing
This commit is contained in:
parent
91cb0fbc82
commit
44d34cb6d0
1 changed files with 2 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue