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 efb23db commit d9c6a51Copy full SHA for d9c6a51
src/libstd/sys/unix/process.rs
@@ -218,6 +218,8 @@ impl Command {
218
219
pub fn spawn(&mut self, default: Stdio)
220
-> io::Result<(Process, StdioPipes)> {
221
+ const CLOEXEC_MSG_FOOTER: &'static [u8] = b"NOEX";
222
+
223
if self.saw_nul {
224
return Err(io::Error::new(ErrorKind::InvalidInput,
225
"nul byte found in provided data"));
@@ -562,8 +564,6 @@ pub struct Process {
562
564
status: Option<ExitStatus>,
563
565
}
566
-const CLOEXEC_MSG_FOOTER: &'static [u8] = b"NOEX";
-
567
impl Process {
568
pub fn id(&self) -> u32 {
569
self.pid as u32
0 commit comments