Subject: | Signal handler causes successful exit status |
$graceful_sig, which File::NFSLock installs as a handler for SIGTERM and
SIGINT, misleadingly exit()s with a successful status.
perl's default signal handlers for SIGINT and SIGTERM, however, exit
with a nonzero exit status.
The simplest solution would simply be to die rather than exit, since die
will also run destructors.
A slightly more ideal solution would be to exit with the same status
that perl would have otherwise used for the appropriate signal.
I'll work on a patch for this, and submit it here.