aboutsummaryrefslogtreecommitdiff
path: root/cmdedit.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmdedit.c')
-rw-r--r--cmdedit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmdedit.c b/cmdedit.c
index ec9939312..cc39e562a 100644
--- a/cmdedit.c
+++ b/cmdedit.c
@@ -571,6 +571,7 @@ extern void cmdedit_init(void)
571 atexit(cmdedit_reset_term); /* be sure to do this only once */ 571 atexit(cmdedit_reset_term); /* be sure to do this only once */
572 } 572 }
573 573
574#if 0
574 if ((handlers_sets & SET_TERM_HANDLERS) == 0) { 575 if ((handlers_sets & SET_TERM_HANDLERS) == 0) {
575 signal(SIGKILL, clean_up_and_die); 576 signal(SIGKILL, clean_up_and_die);
576 signal(SIGINT, clean_up_and_die); 577 signal(SIGINT, clean_up_and_die);
@@ -578,6 +579,7 @@ extern void cmdedit_init(void)
578 signal(SIGTERM, clean_up_and_die); 579 signal(SIGTERM, clean_up_and_die);
579 handlers_sets |= SET_TERM_HANDLERS; 580 handlers_sets |= SET_TERM_HANDLERS;
580 } 581 }
582#endif
581 583
582} 584}
583 585
@@ -1487,6 +1489,7 @@ prepare_to_die:
1487extern void cmdedit_terminate(void) 1489extern void cmdedit_terminate(void)
1488{ 1490{
1489 cmdedit_reset_term(); 1491 cmdedit_reset_term();
1492#if 0
1490 if ((handlers_sets & SET_TERM_HANDLERS) != 0) { 1493 if ((handlers_sets & SET_TERM_HANDLERS) != 0) {
1491 signal(SIGKILL, SIG_DFL); 1494 signal(SIGKILL, SIG_DFL);
1492 signal(SIGINT, SIG_DFL); 1495 signal(SIGINT, SIG_DFL);
@@ -1495,6 +1498,7 @@ extern void cmdedit_terminate(void)
1495 signal(SIGWINCH, SIG_DFL); 1498 signal(SIGWINCH, SIG_DFL);
1496 handlers_sets &= ~SET_TERM_HANDLERS; 1499 handlers_sets &= ~SET_TERM_HANDLERS;
1497 } 1500 }
1501#endif
1498} 1502}
1499 1503
1500#endif /* BB_FEATURE_COMMAND_EDITING */ 1504#endif /* BB_FEATURE_COMMAND_EDITING */