# Add END block to parent to terminate and
# clean up watchdog process
- eval "END { local \$!; local \$?;
- wait() if kill('KILL', $watchdog); }";
+ eval "END { local \$! = 0; local \$? = 0;
+ wait() if kill('KILL', $watchdog); };";
return;
}
if ($watchdog) { # Parent process
# Add END block to parent to terminate and
# clean up watchdog process
- eval "END { local \$!; local \$?;
- wait() if kill('KILL', $watchdog); }";
+ eval "END { local \$! = 0; local \$? = 0;
+ wait() if kill('KILL', $watchdog); };";
return;
}