We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fd7da9 commit 831ff77Copy full SHA for 831ff77
src/libstd/sys/unix/process/process_common.rs
@@ -87,6 +87,11 @@ pub enum Stdio {
87
Fd(FileDesc),
88
}
89
90
+// Command is not Send by default due to the Command.argv field containing a raw pointers. However
91
+// it is safe to implement Send, because anyway, these pointers point to memory owned by the
92
+// Command.args field.
93
+unsafe impl Send for Command {}
94
+
95
impl Command {
96
pub fn new(program: &OsStr) -> Command {
97
let mut saw_nul = false;
0 commit comments