Commit d71d1a64 authored by msvensson@shellback.(none)'s avatar msvensson@shellback.(none)

Merge shellback.(none):/home/msvensson/mysql/mysql-4.1-maint

into  shellback.(none):/home/msvensson/mysql/mysql-5.0-maint
parents 09d069fa 770a1f91
...@@ -8,7 +8,6 @@ use Socket; ...@@ -8,7 +8,6 @@ use Socket;
use Errno; use Errno;
use strict; use strict;
#use POSIX ":sys_wait_h";
use POSIX 'WNOHANG'; use POSIX 'WNOHANG';
sub mtr_run ($$$$$$;$); sub mtr_run ($$$$$$;$);
...@@ -1088,7 +1087,6 @@ sub mtr_kill_processes ($) { ...@@ -1088,7 +1087,6 @@ sub mtr_kill_processes ($) {
sub mtr_exit ($) { sub mtr_exit ($) {
my $code= shift; my $code= shift;
# cluck("Called mtr_exit()");
mtr_timer_stop_all($::glob_timers); mtr_timer_stop_all($::glob_timers);
local $SIG{HUP} = 'IGNORE'; local $SIG{HUP} = 'IGNORE';
# ToDo: Signalling -$$ will only work if we are the process group # ToDo: Signalling -$$ will only work if we are the process group
......
...@@ -8,9 +8,6 @@ use Socket; ...@@ -8,9 +8,6 @@ use Socket;
use Errno; use Errno;
use strict; use strict;
#use POSIX ":sys_wait_h";
#use POSIX 'WNOHANG';
sub mtr_init_timers (); sub mtr_init_timers ();
sub mtr_timer_start($$$); sub mtr_timer_start($$$);
sub mtr_timer_stop($$); sub mtr_timer_stop($$);
...@@ -142,10 +139,8 @@ sub mtr_timer_timeout ($$) { ...@@ -142,10 +139,8 @@ sub mtr_timer_timeout ($$) {
return "" unless exists $timers->{'pids'}->{$pid}; return "" unless exists $timers->{'pids'}->{$pid};
# We got a timeout # We got a timeout, return the name ot the timer
my $name= $timers->{'pids'}->{$pid}; return $timers->{'pids'}->{$pid};
mtr_timer_stop($timers, $name);
return $name;
} }
1; 1;
...@@ -2913,6 +2913,7 @@ sub run_testcase ($) { ...@@ -2913,6 +2913,7 @@ sub run_testcase ($) {
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
if ( $opt_start_and_exit or $opt_start_dirty ) if ( $opt_start_and_exit or $opt_start_dirty )
{ {
mtr_timer_stop_all($glob_timers);
mtr_report("\nServers started, exiting"); mtr_report("\nServers started, exiting");
exit(0); exit(0);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment