summaryrefslogtreecommitdiff
path: root/mysql-test/lib
diff options
context:
space:
mode:
authorunknown <knielsen@mysql.com>2006-03-16 11:23:09 +0100
committerunknown <knielsen@mysql.com>2006-03-16 11:23:09 +0100
commit48e23ec8627007a330a37ff9925e11fdc94b1281 (patch)
tree99991496a96dcb4cf68a8edbb4f2bdb4a3a32c1b /mysql-test/lib
parent978c899233233ade4b24b9ed47367a5817d8a056 (diff)
parentfd6d45f0b0de5a8f0767d96d8f12cbca649f454c (diff)
downloadmariadb-git-48e23ec8627007a330a37ff9925e11fdc94b1281.tar.gz
Merge mysql.com:/usr/local/mysql/mysql-4.1
into mysql.com:/usr/local/mysql/mysql-5.0 mysql-test/lib/mtr_timer.pl: Auto merged ndb/src/kernel/blocks/backup/Backup.cpp: Auto merged scripts/make_binary_distribution.sh: Auto merged
Diffstat (limited to 'mysql-test/lib')
-rw-r--r--mysql-test/lib/mtr_timer.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/lib/mtr_timer.pl b/mysql-test/lib/mtr_timer.pl
index 709cebd6407..a85ab8c6122 100644
--- a/mysql-test/lib/mtr_timer.pl
+++ b/mysql-test/lib/mtr_timer.pl
@@ -78,6 +78,12 @@ sub mtr_timer_start($$$) {
{
# Child, redirect output and exec
# FIXME do we need to redirect streams?
+
+ # Don't do the ^C cleanup in the timeout child processes!
+ # There is actually a race here, if we get ^C after fork(), but before
+ # clearing the signal handler.
+ $SIG{INT}= 'DEFAULT';
+
$0= "mtr_timer(timers,$name,$duration)";
sleep($duration);
exit(0);