Skip to content

Commit d9c6a51

Browse files
committed
std: Move constant back to where it needs to be
Lost track of this during the std::process refactorings
1 parent efb23db commit d9c6a51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/sys/unix/process.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@ impl Command {
218218

219219
pub fn spawn(&mut self, default: Stdio)
220220
-> io::Result<(Process, StdioPipes)> {
221+
const CLOEXEC_MSG_FOOTER: &'static [u8] = b"NOEX";
222+
221223
if self.saw_nul {
222224
return Err(io::Error::new(ErrorKind::InvalidInput,
223225
"nul byte found in provided data"));
@@ -562,8 +564,6 @@ pub struct Process {
562564
status: Option<ExitStatus>,
563565
}
564566

565-
const CLOEXEC_MSG_FOOTER: &'static [u8] = b"NOEX";
566-
567567
impl Process {
568568
pub fn id(&self) -> u32 {
569569
self.pid as u32

0 commit comments

Comments
 (0)