diff options
author | Steve Hay <steve.m.hay@googlemail.com> | 2015-05-09 14:49:11 +0100 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2015-05-09 14:49:11 +0100 |
commit | 2dcf63953dd1d0578e22a4f2764bc8e4b654e555 (patch) | |
tree | caa404a94bf8574c340e4422e48976668e896698 /t | |
parent | 416c06fc852c00a948ade2fd39e7bf1b9f00ca9d (diff) | |
download | perl-2dcf63953dd1d0578e22a4f2764bc8e4b654e555.tar.gz |
Do not use bareword TERM or KILL in kill() call in test watchdog process
Diffstat (limited to 't')
-rw-r--r-- | t/test.pl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1591,7 +1591,7 @@ sub watchdog ($;$) my $sig = $is_vms ? 'TERM' : 'KILL'; my $cmd = _create_runperl( prog => "sleep($timeout);" . "warn qq/# $timeout_msg" . '\n/;' . - "kill($sig, $pid_to_kill);"); + "kill(q/$sig/, $pid_to_kill);"); $watchdog = system(1, $cmd); }; if ($@ || ($watchdog <= 0)) { |