Fix for BUG#3839 , too many signal handlers installed

parent 98c10ced
......@@ -106,6 +106,7 @@ monty@tik.
monty@tik.mysql.fi
monty@tramp.mysql.fi
monty@work.mysql.com
msvensson@build.mysql.com
mwagner@cash.mwagner.org
mwagner@evoq.mwagner.org
mwagner@work.mysql.com
......
......@@ -232,12 +232,12 @@ catchsigs(bool ignore){
// handler named "handler". "handler" will then be called is instead
// of the defualt process signal handler)
if(ignore){
for(int i = 1; i<100; i++){
for(int i = 1; i<SIGRTMIN; i++){
if(i != SIGCHLD)
signal(i, SIG_IGN);
}
} else {
for(int i = 1; i<100; i++){
for(int i = 1; i<SIGRTMIN; i++){
signal(i, handler);
}
}
......
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