Fix windows errors

This commit is contained in:
John Nunley 2023-06-25 07:25:36 -07:00 committed by John Nunley
parent ccea232615
commit 4d2738eb5a
1 changed files with 2 additions and 2 deletions

View File

@ -192,10 +192,10 @@ cfg_if::cfg_if! {
}
/// Register a process object into this pipe.
fn register(&self, _child: &std::process::Child) -> io::Result<()> {
fn register(&self, child: &std::process::Child) -> io::Result<()> {
// Called when a child exits.
unsafe extern "system" fn callback(_: *mut c_void, _: BOOLEAN) {
callback_channel().0.try_send(()).ok();
Reaper::get().pipe.get().unwrap().sender.try_send(()).ok();
}
// Register this child process to invoke `callback` on exit.