mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 03:17:20 +02:00
Merge bk-internal:/home/bk/mysql-4.1
into mysql.com:/usr/local/mysql/mysql-4.1-fixrace
This commit is contained in:
commit
39bfc560a1
1 changed files with 9 additions and 1 deletions
|
|
@ -770,7 +770,15 @@ sub mtr_record_dead_children () {
|
|||
}
|
||||
|
||||
sub start_reap_all {
|
||||
$SIG{CHLD}= 'IGNORE'; # FIXME is this enough?
|
||||
# This causes terminating processes to not become zombies, avoiding
|
||||
# the need for (or possibility of) explicit waitpid().
|
||||
$SIG{CHLD}= 'IGNORE';
|
||||
|
||||
# On some platforms (Linux, QNX, OSX, ...) there is potential race
|
||||
# here. If a process terminated before setting $SIG{CHLD} (but after
|
||||
# any attempt to waitpid() it), it will still be a zombie. So we
|
||||
# have to handle any such process here.
|
||||
while(waitpid(-1, &WNOHANG) > 0) { };
|
||||
}
|
||||
|
||||
sub stop_reap_all {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue