develooper Front page | perl.perl5.porters | Postings from October 2005

[patch@25838]Hopefully the last VMS exit/error fixes needed.

Thread Next
From:
John E. Malmberg
Date:
October 25, 2005 08:09
Subject:
[patch@25838]Hopefully the last VMS exit/error fixes needed.
Message ID:
435E4AB1.1000106@qsl.net
In vms/perlvms.pod :

Document traditional VMS behavior of C<die>, and also document the 
latent POSIX_EXIT behavior changes for C<die> and C<$?>.

In perl.c:

Fixes to generate both the traditional and latent POSIX_EXIT VMS 
behaviors and provide comments about why they are so different from 
non-VMS.  This needed a new macro STATUS_EXIT_SET in perl.h.

In perl.h:

Fixes to generate the expected VMS exit status for the various ways that 
it could be set.

New macro STATUS_EXIT_SET to differentiate the cases, for non-VMS made 
it reference STATUS_UNIX_SET.

In vms/vms.c:

Fix #1, default operator precedence in C was different than what I 
intended, so child exit status codes were translated incorrectly.

Fix #2, typo caused a UNIX status code translation be changed to the 
wrong code.

A test was run last night and all the tests that exercised this code passed.

-John
wb8tyw@qsl.net
Personal Opinion Only


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About