Adds STATUS argument to LOGOUT for process exit status #1978
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Combined with Interlisp/maiko#525 allows passing an exit status (typically 0..255) as an optional second argument to LOGOUT.
The underlying Maiko implementation will accept any integer value (or NIL) and pass it to the system exit() procedure, however the behavior for numeric values outside the range 0..255 is typically OS dependent and often unspecified. The default exit code is 0 (EXIT_SUCCESS). Passing non-numeric values (other than NIL) will result in an exit with status
EXIT_FAILURE
, typically defined by the OS as 1.While both the change in this branch and the corresponding maiko branch are required for full functionality, they can be deployed in either order -- old sysouts will not change behavior on the newer maiko emulator, and new sysouts will run on an older emulator but the exit status will be ignored.