Fix Windows build error

Signed-off-by: John Nunley <dev@notgull.net>
This commit is contained in:
John Nunley 2023-09-10 15:58:26 -07:00
parent 739703a3e6
commit 398bbbed1c
No known key found for this signature in database
GPG Key ID: 397D2B00FEA368AA
1 changed files with 1 additions and 1 deletions

View File

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