Skip to content

Commit

Permalink
sleep after exec, not before
Browse files Browse the repository at this point in the history
  • Loading branch information
nmisch committed May 20, 2024
1 parent e9b9e1a commit 815b78a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion lib/IPC/Run.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1463,7 +1463,6 @@ sub _exec {
if (grep /sigprocmask/, @_) {
my $new = POSIX::SigSet->new(&POSIX::SIGTERM);
POSIX::sigprocmask(&POSIX::SIG_BLOCK, $new);
sleep 3;
}

# {
Expand Down
1 change: 1 addition & 0 deletions t/kill_kill.t
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ SCOPE: {
'-e',
'
use POSIX;
sleep 3;
my $new = POSIX::SigSet->new(&POSIX::SIGTERM);
POSIX::sigprocmask(&POSIX::SIG_UNBLOCK, $new);
sleep while 1
Expand Down

0 comments on commit 815b78a

Please sign in to comment.