mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-03 00:00:05 +02:00
+3
-8
@@ -348,14 +348,9 @@ extern fn handler(signum: c_int,
|
|||||||
};
|
};
|
||||||
|
|
||||||
if !state.ready.swap(true, Ordering::SeqCst) {
|
if !state.ready.swap(true, Ordering::SeqCst) {
|
||||||
match (&(*GLOBAL_STATE).write).write(&[1]) {
|
// Ignore errors here as we're not in a context that can panic,
|
||||||
Ok(..) => {}
|
// and otherwise there's not much we can do.
|
||||||
Err(e) => {
|
drop((&(*GLOBAL_STATE).write).write(&[1]));
|
||||||
if e.kind() != io::ErrorKind::WouldBlock {
|
|
||||||
panic!("bad error on write fd: {}", e)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let fnptr = state.prev.sa_sigaction;
|
let fnptr = state.prev.sa_sigaction;
|
||||||
|
|||||||
Reference in New Issue
Block a user