diff options
| author | Ben Kimock <kimockb@gmail.com> | 2023-09-02 19:50:33 -0400 |
|---|---|---|
| committer | Ben Kimock <kimockb@gmail.com> | 2023-09-03 09:21:10 -0400 |
| commit | 642251b71f8395f7dd24e04c9d2b1716d3963112 (patch) | |
| tree | 5a3b85b6220d0c070fdd4b39f0192bb82836e560 /library/std/src/sys/unix/process | |
| parent | 1bd043098e05839afb557bd7a2858cb09a4054ca (diff) | |
| download | rust-642251b71f8395f7dd24e04c9d2b1716d3963112.tar.gz rust-642251b71f8395f7dd24e04c9d2b1716d3963112.zip | |
Use std::io::Error::is_interrupted everywhere
Diffstat (limited to 'library/std/src/sys/unix/process')
| -rw-r--r-- | library/std/src/sys/unix/process/process_unix.rs | 2 |
1 files changed, 1 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 3963e7f52d5..75b54064501 100644 --- a/library/std/src/sys/unix/process/process_unix.rs +++ b/library/std/src/sys/unix/process/process_unix.rs @@ -165,7 +165,7 @@ impl Command { assert!(p.wait().is_ok(), "wait() should either return Ok or panic"); return Err(Error::from_raw_os_error(errno)); } - Err(ref e) if e.kind() == ErrorKind::Interrupted => {} + Err(ref e) if e.is_interrupted() => {} Err(e) => { assert!(p.wait().is_ok(), "wait() should either return Ok or panic"); panic!("the CLOEXEC pipe failed: {e:?}") |
