-
Notifications
You must be signed in to change notification settings - Fork 683
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
Convert WaitStatus
to/from i32
#740
Comments
For 1, you should be able to cast it using As for serializing/deserializing, that should really be done by |
I don't understand how this could work without calling |
Ahh, indeed. Should've looked at the code first! But i think I need some more context to really understand your use case and whether it should be supported here. So can you explain your use case more? You end up with a |
rr --- https://github.com/mozilla/rr --- records program execution and builds a trace which contains, among other things, process exit codes as reported by I want to read those codes in a Rust program and then process them e.g. to distinguish regular exit from fatal signals and extract the fatal signal number. nix (Actually I can only actually use it if the nix |
I'm not entirely convinced this should be supported by But I still have only a very narrow view of this context. I'd suggest you whip up some code to do what we want (for |
rr's written in C++ so I can't use nix there. Another use-case is if you're writing something like
Sure, so have decoding return |
Filed #741 |
waitpid
statuses in a database that I want to be able to parse asWaitStatus
es, butdecode
is not exposed.WaitStatus
es and going to/from the raw i32 seems like a good way to do that.The text was updated successfully, but these errors were encountered: