mirror of
https://github.com/xzeldon/htop.git
synced 2025-04-11 13:07:08 +03:00
Handle SIGQUIT. Closes #503.
This commit is contained in:
parent
5db1b0e9a0
commit
112db9a609
1
CRT.c
1
CRT.c
@ -599,6 +599,7 @@ void CRT_init(int delay, int colorScheme) {
|
|||||||
signal(11, CRT_handleSIGSEGV);
|
signal(11, CRT_handleSIGSEGV);
|
||||||
#endif
|
#endif
|
||||||
signal(SIGTERM, CRT_handleSIGTERM);
|
signal(SIGTERM, CRT_handleSIGTERM);
|
||||||
|
signal(SIGQUIT, CRT_handleSIGTERM);
|
||||||
use_default_colors();
|
use_default_colors();
|
||||||
if (!has_colors())
|
if (!has_colors())
|
||||||
CRT_colorScheme = 1;
|
CRT_colorScheme = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user