]> git.lizzy.rs Git - rust.git/commitdiff
std: Move constant back to where it needs to be
authorAlex Crichton <alex@alexcrichton.com>
Tue, 9 Feb 2016 23:14:12 +0000 (15:14 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 10 Feb 2016 17:28:49 +0000 (09:28 -0800)
Lost track of this during the std::process refactorings

src/libstd/sys/unix/process.rs

index 9e12b2f116cc397ed612bfd689f2cfebd74148d7..28475f50ce63e49267b9f7e63314a7793e33fb6f 100644 (file)
@@ -218,6 +218,8 @@ pub fn stderr(&mut self, stderr: Stdio) {
 
     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