A
allenjo5
Is there as easy a way to get the textual description of a process
signal code in perl as there is to get the textual description of a
system call error code? For instance, for an errno of 24, just set $!
to 24 and use it as a string:
$ perl -le '$!=24; print $!'
The process file table is full.
Is there something equivalent for getting the text meaning of signal
code 24 (SIGXCPU) without having to parse signal.h? Yeah I can do
that readily enough, but was expecting perl to provide an easier
method. So far, I haven't found the trick.
signal code in perl as there is to get the textual description of a
system call error code? For instance, for an errno of 24, just set $!
to 24 and use it as a string:
$ perl -le '$!=24; print $!'
The process file table is full.
Is there something equivalent for getting the text meaning of signal
code 24 (SIGXCPU) without having to parse signal.h? Yeah I can do
that readily enough, but was expecting perl to provide an easier
method. So far, I haven't found the trick.