This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
VMS posix exit fixes
authorJohn Malmberg <wb8tyw@gmail.com>
Sun, 4 Jan 2009 18:42:07 +0000 (12:42 -0600)
committerCraig A. Berry <craigberry@mac.com>
Mon, 5 Jan 2009 03:31:36 +0000 (21:31 -0600)
commite08e1e1d056fc71c85ae29ec7e82ba2b6320e6e4
tree641cec45bf6aa05d60a9cff7e6ebaba4d968c4b4
parentef3a38ffad701e4f5a98a0a1f84c7e2e8c3da11e
VMS posix exit fixes

perl.h and perl.c need further fixes to get VMS to return the expected
POSIX exit codes when that is enabled.

This fix gets the correct numbers except for the SIGTERM case, which
will need some more work.

It also gets the posix exit code to set an error severity on a fatal
exit so that DCL and MMS/MMK or VMS native programs can easily detect a
script failure.

This patch does not address an issue in vms.c where the feature logicals
may not be correctly read.  That will follow in a future patch.

The tests have been adjusted to detect when VMS is in the POSIX exit
mode and perform properly.

-John
wb8tyw@gmail.com
--
My qsl.net e-mail address is temporarily out of order.
perl.c
perl.h
t/op/die_exit.t
t/op/exec.t
t/run/exit.t