diff --git a/src/lib/Hydra/Helper/AddBuilds.pm b/src/lib/Hydra/Helper/AddBuilds.pm index 48764bf8..ae5f0908 100644 --- a/src/lib/Hydra/Helper/AddBuilds.pm +++ b/src/lib/Hydra/Helper/AddBuilds.pm @@ -634,14 +634,14 @@ sub captureStdoutStderr { $res = IPC::Run::run(\@cmd, \$stdin, \$stdout, \$stderr); alarm 0; - }; + }; - if ($@) { - die unless $@ eq "timeout\n"; # propagate unexpected errors - return (undef, undef, undef); - } else { - return ($res, $stdout, $stderr); - } + if ($@) { + die unless $@ eq "timeout\n"; # propagate unexpected errors + return (undef, undef, undef); + } else { + return ($res, $stdout, $stderr); + } }