Open
Description
Hi. This is a tracking issue for various error handling awkwardnesses in std::process
. It seemed useful to gather them together here. I hope you consider this helpful. I don't think this needs an RFC but I can make an RFC if people feel that would be best.
About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also uses as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Relevant RFCs and proposals:
- Command improvements for ergonomics and error handling rfcs#3362 is a proposal to add a new methods to
Command
and a newSubprocessError
type
Platform-independent issues
- Consider adding #[must_use] to std::process::Child #70186 request for
#[must_use]
onstd::process::Child
(first cut in Add #[must_use] to process::Command, process::Child and process::ExitStatus #81452) - Consider adding #[must_use] to std::process::ExitStatus #73127 request for
#[must_use]
onstd::process::ExitStatus
(first cut in Add #[must_use] to process::Command, process::Child and process::ExitStatus #81452) - std::process::Command output() method error handling hazards #73126 request for less hazardous version of
output()
- std::process::ExitStatus Into Result, or .expect(), or something #73125 request for affordance to make
Result
fromExitStatus
Unix issues relating to ExitStatusExt
- std::os::unix::process::ExitStatusExt into_raw #73128 request for
std::os::unix::process::ExitStatusExt
into_raw
- std::os::unix::process::ExitStatusExt .coredumped() method #73129 request for
std::os::unix::process::ExitStatusExt
.coredumped()
method