mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
Fix for BUG#3839 , too many signal handlers installed
This commit is contained in:
parent
98c10ced6a
commit
5415cbc0fe
2 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue