We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c492355 commit e6aafbcCopy full SHA for e6aafbc
library/std/src/sys/unix/process/process_unix.rs
@@ -279,7 +279,7 @@ impl Command {
279
stdio: ChildPipes,
280
maybe_envp: Option<&CStringArray>,
281
) -> Result<!, io::Error> {
282
- use crate::sys::{self, cvt_nz, cvt_r};
+ use crate::sys::{self, cvt_r};
283
284
if let Some(fd) = stdio.stdin.fd() {
285
cvt_r(|| libc::dup2(fd, libc::STDIN_FILENO))?;
@@ -324,6 +324,7 @@ impl Command {
324
#[cfg(not(target_os = "emscripten"))]
325
{
326
use crate::mem::MaybeUninit;
327
+ use crate::sys::cvt_nz;
328
// Reset signal handling so the child process starts in a
329
// standardized state. libstd ignores SIGPIPE, and signal-handling
330
// libraries often set a mask. Child processes inherit ignored
0 commit comments