"be consistent" | |
PerlMonks |
Re: Help checking program return valuesby hippo (Bishop) |
on Jul 29, 2020 at 18:03 UTC ( [id://11120006]=note: print w/replies, xml ) | Need Help?? |
You haven't said which O/S you are running on and that might well have an impact here. elseif ($signal_num != 0) That isn't Perl, so either the code you are showing isn't the code you are running or your code isn't running at all. The upper 8 bits had an exit code of 139, which indicates a seg fault, but the signal for seg fault was not set. An exit code of 139 does not necessarily indicate a seg fault. Trivially:
Is there a module or library I can use to automatically catch all of the "bad" return values so I don't have to code all of the enumerations of signals and return values myself? Unlikely because your idea of "bad" may not be someone else's idea of "bad". However, you could simply write your own module for your own use and then use that in all your other code. 🦛
In Section
Seekers of Perl Wisdom
|
|