Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1031 is not a valid program exit code for posix/systemd #3973

Closed
arnetheduck opened this issue Aug 16, 2022 · 2 comments
Closed

1031 is not a valid program exit code for posix/systemd #3973

arnetheduck opened this issue Aug 16, 2022 · 2 comments
Milestone

Comments

@arnetheduck
Copy link
Member

The value of status may be 0, EXIT_SUCCESS, EXIT_FAILURE, [CX] [Option Start] or any other value, though only the least significant 8 bits (that is, status & 0377) shall be available to a waiting parent process. [Option End]

https://pubs.opengroup.org/onlinepubs/009695399/functions/exit.html

systemd in particular does not support parsing values >255:

Aug 16 16:37:42 raspi3 systemd[1]: /lib/systemd/system/nimbus_validator_client.service:49: Failed to parse value, ignoring: 1031

22.7.0

@tersec
Copy link
Contributor

tersec commented Aug 17, 2022

And it's consistent with https://www.freedesktop.org/software/systemd/man/systemd.exec.html#Process%20Exit%20Codes too which is why per #3687 a >1000 code was chosen to begin with, so the usable gap is a possibly non-strict subset of 8 through 199 inclusive.

@zah zah added this to the v22.8.0 milestone Aug 23, 2022
@zah
Copy link
Contributor

zah commented Aug 23, 2022

Fixed by #3977 and shipped in Nimbus v22.8.0

@zah zah closed this as completed Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants