@scottmcm: I think it should at least say somewhere what that default is. Having it come from a derive(Default) on a c_int feels indirect to me as well, so perhaps it would make sense to define it manually in terms of ExitCode::SUCCESS instead, say -- that would also allow putting a doc-comment on the impl.
We should document that Default for ExitStatus is "process reported successful termination", ie the result of ExitCode::success().into(), and, implement it that way.
Originally posted by @ijackson in #106425 (comment)
We should document that
DefaultforExitStatusis "process reported successful termination", ie the result ofExitCode::success().into(), and, implement it that way.Originally posted by @ijackson in #106425 (comment)