diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2016-02-09 15:14:12 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2016-02-10 09:28:49 -0800 |
| commit | d9c6a51c3b4b7f215a4cfcb7d3e1921fe2fa9657 (patch) | |
| tree | 3e0ba51384a2772ab6346f06636c0303f01ac252 /src/libstd/sys/unix | |
| parent | efb23db79a5cc16770a7c3d5cef7059d868dea8f (diff) | |
| download | rust-d9c6a51c3b4b7f215a4cfcb7d3e1921fe2fa9657.tar.gz rust-d9c6a51c3b4b7f215a4cfcb7d3e1921fe2fa9657.zip | |
std: Move constant back to where it needs to be
Lost track of this during the std::process refactorings
Diffstat (limited to 'src/libstd/sys/unix')
| -rw-r--r-- | src/libstd/sys/unix/process.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sys/unix/process.rs b/src/libstd/sys/unix/process.rs index 9e12b2f116c..28475f50ce6 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<ExitStatus>, } -const CLOEXEC_MSG_FOOTER: &'static [u8] = b"NOEX"; - impl Process { pub fn id(&self) -> u32 { self.pid as u32 |
