Re: How to report a death by signal ?

From: Laurent Bercot <ska-skaware_at_skarnet.org>
Date: Wed, 18 Feb 2015 15:31:20 +0100

On 18/02/2015 14:20, Peter Pentchev wrote:
> [roam_at_straylight ~]$ perl -e 'die("foo!\n");'; echo $?
> foo!
> 255

  I think you should be ok, for the same reason why a shell is ok:
if you're using Perl, you're most likely writing your whole script
with it, especially control flow and error/crash checking.
You're not playing with an inner interpreter reporting a code to an
outer interpreter. So the weird 255 should not be a problem in
practice.

  If I'm wrong and your use case precisely involves a perl script
running as P or C with G being an execline command, please mention
it! Just because I'd be curious. :)

-- 
  Laurent
Received on Wed Feb 18 2015 - 14:31:20 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC