std: Move constant back to where it needs to be

Lost track of this during the std::process refactorings
This commit is contained in:
Alex Crichton 2016-02-09 15:14:12 -08:00
parent efb23db79a
commit d9c6a51c3b
1 changed files with 2 additions and 2 deletions

View File

@ -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