diff options
author | unknown <knielsen@mysql.com> | 2006-01-04 16:04:21 +0100 |
---|---|---|
committer | unknown <knielsen@mysql.com> | 2006-01-04 16:04:21 +0100 |
commit | 920cbc79d66196f4571cd9827b885963e7e8696c (patch) | |
tree | 603b1d15e83bfa04560fc11f0bab3e8cef668d34 /mysql-test/lib | |
parent | a7bb8a977bfc976afd193baa99ec1401cca1105d (diff) | |
parent | b6e0d940d61ad7eda9e04ea31a24c1505967ad71 (diff) | |
download | mariadb-git-920cbc79d66196f4571cd9827b885963e7e8696c.tar.gz |
Merge mysql.com:/usr/local/mysql/mysql-5.0-qnxfix
into mysql.com:/usr/local/mysql/mysql-5.1-new
Diffstat (limited to 'mysql-test/lib')
-rw-r--r-- | mysql-test/lib/mtr_process.pl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mysql-test/lib/mtr_process.pl b/mysql-test/lib/mtr_process.pl index b3a243444c1..4d88c9b3322 100644 --- a/mysql-test/lib/mtr_process.pl +++ b/mysql-test/lib/mtr_process.pl @@ -890,7 +890,14 @@ sub mtr_exit ($) { # cluck("Called mtr_exit()"); mtr_timer_stop_all($::glob_timers); local $SIG{HUP} = 'IGNORE'; - kill('HUP', -$$); + # ToDo: Signalling -$$ will only work if we are the process group + # leader (in fact on QNX it will signal our session group leader, + # which might be Do-compile or Pushbuild, causing tests to be + # aborted). So we only do it if we are the group leader. We might + # set ourselves as the group leader at startup (with + # POSIX::setpgrp(0,0)), but then care must be needed to always do + # proper child process cleanup. + kill('HUP', -$$) if $$ == getpgrp(); sleep 2; exit($code); } |