Skip to content

Commit

Permalink
std: Move constant back to where it needs to be
Browse files Browse the repository at this point in the history
Lost track of this during the std::process refactorings
  • Loading branch information
alexcrichton committed Feb 10, 2016
1 parent efb23db commit d9c6a51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/sys/unix/process.rs
Expand Up @@ -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"));
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d9c6a51

Please sign in to comment.