Commit: 283d9602d9891576fdc08c82aaf7b79a4f473c8f
Parent: b84812e4cafd19721fe3ff403d71568f12147903
Author: Randy Palamar
Date: Tue, 29 Nov 2022 07:35:51 -0700
main.c: remove duplicate function
Diffstat:
M | main.c | | | 20 | ++------------------ |
1 file changed, 2 insertions(+), 18 deletions(-)
diff --git a/main.c b/main.c
@@ -24,7 +24,6 @@ int retval = RET_OK;
static void initialize_all_subsystems(void);
static void initialize_all_subsystems_2(void);
static void poll_fg(void *);
-static void unhandle_basic_signals(struct terminal *);
static int init_b = 0;
int g_argc;
@@ -84,10 +83,10 @@ sig_intr(void *t_)
{
struct terminal *t = (struct terminal *)t_;
if (!t) {
- unhandle_basic_signals(t);
+ unhandle_terminal_signals(t);
terminate_loop = 1;
} else {
- unhandle_basic_signals(t);
+ unhandle_terminal_signals(t);
exit_prog(t, NULL, NULL);
}
}
@@ -181,21 +180,6 @@ unhandle_terminal_signals(struct terminal *term)
}
}
-static void
-unhandle_basic_signals(struct terminal *term)
-{
- install_signal_handler(SIGHUP, NULL, NULL, 0);
- install_signal_handler(SIGINT, NULL, NULL, 0);
- install_signal_handler(SIGTSTP, NULL, NULL, 0);
- install_signal_handler(SIGTTIN, NULL, NULL, 0);
- install_signal_handler(SIGTTOU, NULL, NULL, 0);
- install_signal_handler(SIGCONT, NULL, NULL, 0);
- if (fg_poll_timer != NULL) {
- kill_timer(fg_poll_timer);
- fg_poll_timer = NULL;
- }
-}
-
int terminal_pipe[2] = { -1, -1 };
int