Skip to content

Commit

Permalink
m: Bump to event-listener v4.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: John Nunley <dev@notgull.net>
  • Loading branch information
notgull authored Nov 19, 2023
1 parent 90f343f commit d0993f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exclude = ["/.*"]
[dependencies]
async-lock = "3.0.0"
cfg-if = "1.0"
event-listener = "3.0.0"
event-listener = "4.0.0"
futures-lite = "2.0.0"

[target.'cfg(unix)'.dependencies]
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ impl Child {
let child = self.child.clone();

async move {
let listener = EventListener::new(&Reaper::get().sigchld);
let listener = EventListener::new();
let mut listening = false;
futures_lite::pin!(listener);

Expand All @@ -523,7 +523,7 @@ impl Child {
listener.as_mut().await;
listening = false;
} else {
listener.as_mut().listen();
listener.as_mut().listen(&Reaper::get().sigchld);
listening = true;
}
}
Expand Down

0 comments on commit d0993f8

Please sign in to comment.