mirror of
https://github.com/aristocratos/btop.git
synced 2024-09-28 23:31:26 +12:00
Remove pthread_exit().
Returning from the thread this way prevents local variables to be destructed correctly since pthread_exit is marked noreturn. This fixes a segmentation fault with glibc and llvm-libunwind on exit.
This commit is contained in:
parent
a2fa9da073
commit
a5e4969d7e
1 changed files with 1 additions and 1 deletions
|
@ -657,7 +657,7 @@ namespace Runner {
|
|||
<< Term::sync_end << flush;
|
||||
}
|
||||
//* ----------------------------------------------- THREAD LOOP -----------------------------------------------
|
||||
pthread_exit(NULL);
|
||||
return {};
|
||||
}
|
||||
//? ------------------------------------------ Secondary thread end -----------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in a new issue