atexit crash on mac
This commit is contained in:
parent
e510d2744d
commit
c3a3c1a1c7
@ -218,8 +218,6 @@ pub fn fix_key_down_timeout_loop() {
|
|||||||
std::thread::sleep(std::time::Duration::from_millis(300));
|
std::thread::sleep(std::time::Duration::from_millis(300));
|
||||||
fix_key_down_timeout(false);
|
fix_key_down_timeout(false);
|
||||||
});
|
});
|
||||||
// atexit is called before exit
|
|
||||||
unsafe { libc::atexit(fix_key_down_timeout_at_exit) };
|
|
||||||
unsafe {
|
unsafe {
|
||||||
libc::signal(libc::SIGINT, fix_key_down_timeout_at_signal as _);
|
libc::signal(libc::SIGINT, fix_key_down_timeout_at_signal as _);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user