-
Notifications
You must be signed in to change notification settings - Fork 140
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
reserved exit codes #424
Comments
The comment is a bit misleading. There are two notions of "exit code" involved:
In both cases (2) above, the resulting code will be passed to What the special code of What we should probably be doing instead is reserve codes >= 256 at the Solo5 layer (so as not to steal <= 255 from the application), and/or possibly add a separate ABORT hypercall. |
In posix you distinguish between application-generated exits and signal (/kernel)-imposed exits, here is a stackoverflow post that goes over this with pedantic attention to error code semantics :) https://stackoverflow.com/questions/5149228/return-value-range-of-the-main-function When you call Where this gets confusing is that
Furthermore We could reserve more of these for solo5-specific errors, like from 112 ( I like the |
from solo5.h:
Status values of 255 and above are reserved for use by Solo5.
now, reading some more about exit codes, they seem to be modulo 256 usually -- should the comment instead be "status values of 255 are reserved for use by solo5"? or is it expected that further exit codes are required (and e.g. 250 and above are solo5-specific)?
The text was updated successfully, but these errors were encountered: