diff --git a/tokio/src/process/mod.rs b/tokio/src/process/mod.rs index bd4a7ecee7b..8ca4818362a 100644 --- a/tokio/src/process/mod.rs +++ b/tokio/src/process/mod.rs @@ -330,6 +330,15 @@ impl Command { &mut self.std } + /// Cheaply convert into a `std::process::Command`. + /// + /// Note that Tokio specific options will be lost. Currently, this only applies to [`kill_on_drop`]. + /// + /// [`kill_on_drop`]: Command::kill_on_drop + pub fn into_std(self) -> StdCommand { + self.std + } + /// Adds an argument to pass to the program. /// /// Only one argument can be passed per use. So instead of: