3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-19 10:29:30 +01:00

ProcessManager: remove unnecessary die

This commit is contained in:
Pragmatic Software 2020-09-27 14:02:47 -07:00
parent a0f3d28b80
commit 88d2c283a9

View File

@ -195,7 +195,6 @@ sub execute_process {
local $SIG{ALRM} = sub { die "Process `$context->{commands}->[0]` timed-out" }; local $SIG{ALRM} = sub { die "Process `$context->{commands}->[0]` timed-out" };
alarm $timeout; alarm $timeout;
$subref->($context); $subref->($context);
die if $@;
}; };
alarm 0; alarm 0;