Closed wolfsage closed 6 years ago
Nice!
One of the tests in Delivery.pm now errors out, now that the non-zero exit code is actually noticed, so I'm adding a couple of commits to sort that out too.
(added a7a624d and aa3943e fyi :) )
Awesome, thanks!
In some cases, run_command() would fork using a pipe:
The problem is, the close ($fh) there waits for the child to exit, which means later in reap_command(), waitpid($pid, 0) returns -1 since there are no children, and our caller gets back undef.
This fixes that by returning the child status if we know we already have one and bypassing reap_command() entirely.
Solves #52