Skip to content

Commit

Permalink
Merge pull request #16 from abel-von/kuasar
Browse files Browse the repository at this point in the history
shim: add missing branch to break the loop of waitpid
  • Loading branch information
Burning1020 authored Jan 2, 2024
2 parents db28688 + 6d0cf3e commit 57a1d4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/shim/src/asynchronous/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ async fn handle_signals(signals: Signals) {
.await
.unwrap_or_else(|e| error!("failed to send signal event {}", e))
}
Err(Error::Nix(Errno::ECHILD)) => {
Err(Error::Nix(Errno::ECHILD)) | Ok(WaitStatus::StillAlive)=> {
break;
}
Err(e) => {
Expand Down
2 changes: 1 addition & 1 deletion crates/shim/src/synchronous/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ fn handle_signals(mut signals: Signals) {
monitor::monitor_notify_by_pid(pid.as_raw(), exit_code)
.unwrap_or_else(|e| error!("failed to send signal event {}", e))
}
Err(Errno::ECHILD) => {
Err(Errno::ECHILD) | Ok(WaitStatus::StillAlive) => {
break;
}
Err(e) => {
Expand Down

0 comments on commit 57a1d4b

Please sign in to comment.