about summary refs log tree commit diff
path: root/library/std/src/sys/unix/process
diff options
context:
space:
mode:
authorBen Kimock <kimockb@gmail.com>2023-09-02 19:50:33 -0400
committerBen Kimock <kimockb@gmail.com>2023-09-03 09:21:10 -0400
commit642251b71f8395f7dd24e04c9d2b1716d3963112 (patch)
tree5a3b85b6220d0c070fdd4b39f0192bb82836e560 /library/std/src/sys/unix/process
parent1bd043098e05839afb557bd7a2858cb09a4054ca (diff)
downloadrust-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.rs2
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:?}")