aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-08-08 17:05:45 -0500
committerRob Landley <rob@landley.net>2015-08-08 17:05:45 -0500
commitb73f89429f4a28bc1c694094b97abd011a9a2f9e (patch)
tree825f94c9bd71fbe196d8d6d93cb3ed8a15afcc82
parent79191b6c4857ee08f093ba792c9d9db4cb4f1258 (diff)
downloadtoybox-b73f89429f4a28bc1c694094b97abd011a9a2f9e.tar.gz
Isaac Dunham pointed out that SIGINT's handler was set twice in init.c.
-rw-r--r--toys/pending/init.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/toys/pending/init.c b/toys/pending/init.c
index 8d0d3f02..d9e78ff4 100644
--- a/toys/pending/init.c
+++ b/toys/pending/init.c
@@ -473,7 +473,6 @@ void init_main(void)
sigaction(SIGTSTP, &sig_act, NULL);
memset(&sig_act, 0, sizeof(sig_act));
sig_act.sa_handler = catch_signal;
- sigaction(SIGINT, &sig_act, NULL);
sigaction(SIGHUP, &sig_act, NULL);
run_action_from_list(SYSINIT);
check_if_pending_signals();