From d9c6a51c3b4b7f215a4cfcb7d3e1921fe2fa9657 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 9 Feb 2016 15:14:12 -0800 Subject: [PATCH] std: Move constant back to where it needs to be Lost track of this during the std::process refactorings --- src/libstd/sys/unix/process.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstd/sys/unix/process.rs b/src/libstd/sys/unix/process.rs index 9e12b2f116cc3..28475f50ce63e 100644 --- a/src/libstd/sys/unix/process.rs +++ b/src/libstd/sys/unix/process.rs @@ -218,6 +218,8 @@ impl Command { pub fn spawn(&mut self, default: Stdio) -> io::Result<(Process, StdioPipes)> { + const CLOEXEC_MSG_FOOTER: &'static [u8] = b"NOEX"; + if self.saw_nul { return Err(io::Error::new(ErrorKind::InvalidInput, "nul byte found in provided data")); @@ -562,8 +564,6 @@ pub struct Process { status: Option, } -const CLOEXEC_MSG_FOOTER: &'static [u8] = b"NOEX"; - impl Process { pub fn id(&self) -> u32 { self.pid as u32