mirror of https://github.com/xzeldon/htop.git
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…
Reference in New Issue