diff options
author | unknown <kent@mysql.com> | 2005-08-27 00:52:52 +0200 |
---|---|---|
committer | unknown <kent@mysql.com> | 2005-08-27 00:52:52 +0200 |
commit | 857258f108f7adc9383e4848415348057d8213d5 (patch) | |
tree | 7357f177f5b2379ec3a013f24b4c8b4baa51c118 /mysql-test/lib | |
parent | 7e21963621f57e94e83fa2d4c633e7ca3124870b (diff) | |
download | mariadb-git-857258f108f7adc9383e4848415348057d8213d5.tar.gz |
mtr_timer.pl:
Simplified and corrected mtr_timer_stop_all()
mysql-test/lib/mtr_timer.pl:
Simplified and corrected mtr_timer_stop_all()
Diffstat (limited to 'mysql-test/lib')
-rw-r--r-- | mysql-test/lib/mtr_timer.pl | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/mysql-test/lib/mtr_timer.pl b/mysql-test/lib/mtr_timer.pl index f0c75d2e13e..e96d044dde1 100644 --- a/mysql-test/lib/mtr_timer.pl +++ b/mysql-test/lib/mtr_timer.pl @@ -119,21 +119,9 @@ sub mtr_timer_stop_all ($) { foreach my $name ( keys %{$timers->{'timers'}} ) { - my $tpid= $timers->{'timers'}->{$name}->{'pid'}; - - # FIXME as Cygwin reuses pids fast, maybe check that is - # the expected process somehow?! - kill(9, $tpid); - - # As the timers are so simple programs, we trust them to terminate, - # and use blocking wait for it. We wait just to avoid a zombie. - waitpid($tpid,0); - - delete $timers->{'timers'}->{$name}; # Remove the timer information - delete $timers->{'pids'}->{$tpid}; # and PID reference - - return 1; + mtr_timer_stop($name); } + return 1; } |