Fix Windows build error
Signed-off-by: John Nunley <dev@notgull.net>
This commit is contained in:
parent
739703a3e6
commit
398bbbed1c
|
@ -192,7 +192,7 @@ cfg_if::cfg_if! {
|
||||||
fn register(&self, child: &std::process::Child) -> io::Result<()> {
|
fn register(&self, child: &std::process::Child) -> io::Result<()> {
|
||||||
// Called when a child exits.
|
// Called when a child exits.
|
||||||
unsafe extern "system" fn callback(_: *mut c_void, _: BOOLEAN) {
|
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.
|
// Register this child process to invoke `callback` on exit.
|
||||||
|
|
Loading…
Reference in New Issue