mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-21 19:33:16 +00:00
std: Move constant back to where it needs to be
Lost track of this during the std::process refactorings
This commit is contained in:
parent
efb23db79a
commit
d9c6a51c3b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user