Skip to content

Commit 1e57f51

Browse files
committed
sh: fix warning
1 parent fe573c9 commit 1e57f51

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sh/src/shell/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,8 @@ impl Shell {
771771
}
772772
ForkResult::Parent { child } => {
773773
loop {
774+
// some patterns are only available on linux
775+
#[allow(unreachable_patterns)]
774776
match waitpid(child, Some(WaitPidFlag::WNOHANG | WaitPidFlag::WUNTRACED))? {
775777
WaitStatus::Exited(_, _) => {
776778
// the only way this happened is if there was an error before going

0 commit comments

Comments
 (0)