diff options
| author | Ralf Sager <rsa@3fnc.org> | 2022-04-17 09:42:15 +0200 |
|---|---|---|
| committer | Ralf Sager <rsa@3fnc.org> | 2022-04-17 09:42:15 +0200 |
| commit | e6aafbc70781bd346c6363a166641baa4f224a14 (patch) | |
| tree | 7df5656832baf44a411621cae55f2664e84c2671 /library/std/src/sys/unix/process/process_unix.rs | |
| parent | c492355aa5282522f8653a4517506a9c0be31164 (diff) | |
| download | rust-e6aafbc70781bd346c6363a166641baa4f224a14.tar.gz rust-e6aafbc70781bd346c6363a166641baa4f224a14.zip | |
move import to fix warning with emscripten target
Diffstat (limited to 'library/std/src/sys/unix/process/process_unix.rs')
| -rw-r--r-- | library/std/src/sys/unix/process/process_unix.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/process/process_unix.rs b/library/std/src/sys/unix/process/process_unix.rs index 82f6b5ce519..84c5aa8a81b 100644 --- a/library/std/src/sys/unix/process/process_unix.rs +++ b/library/std/src/sys/unix/process/process_unix.rs @@ -279,7 +279,7 @@ impl Command { stdio: ChildPipes, maybe_envp: Option<&CStringArray>, ) -> Result<!, io::Error> { - use crate::sys::{self, cvt_nz, cvt_r}; + use crate::sys::{self, cvt_r}; if let Some(fd) = stdio.stdin.fd() { cvt_r(|| libc::dup2(fd, libc::STDIN_FILENO))?; @@ -324,6 +324,7 @@ impl Command { #[cfg(not(target_os = "emscripten"))] { use crate::mem::MaybeUninit; + use crate::sys::cvt_nz; // Reset signal handling so the child process starts in a // standardized state. libstd ignores SIGPIPE, and signal-handling // libraries often set a mask. Child processes inherit ignored |
