mirror of
https://github.com/aristocratos/btop.git
synced 2024-05-20 20:32:50 +12:00
quick_exit for Darwin
This commit is contained in:
parent
c1f540e61e
commit
9faeeabda5
|
@ -241,11 +241,11 @@ void clean_quit(int sig) {
|
|||
const auto excode = (sig != -1 ? sig : 0);
|
||||
|
||||
//? Assume error if still not cleaned up and call quick_exit to avoid a segfault from Tools::atomic_lock destructor
|
||||
#ifndef __APPLE__
|
||||
#ifdef __APPLE__
|
||||
_Exit(excode);
|
||||
#else
|
||||
quick_exit(excode);
|
||||
#endif
|
||||
|
||||
exit(excode);
|
||||
}
|
||||
|
||||
//* Handler for SIGTSTP; stops threads, restores terminal and sends SIGSTOP
|
||||
|
|
Loading…
Reference in a new issue