mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-17 07:38:07 +02:00
Revert "core: don't trap SIGINT"
This reverts commit 3a47e57f68.
Forgot Ctl+C does SIGINT, which we use a ton when developing. Oops!
This commit is contained in:
parent
74f25416fe
commit
745c262568
1 changed files with 2 additions and 0 deletions
|
|
@ -173,6 +173,7 @@ nm_signal_handler (int signo)
|
|||
g_main_loop_quit (main_loop);
|
||||
break;
|
||||
|
||||
case SIGINT:
|
||||
case SIGTERM:
|
||||
/* let the fatal signals interrupt us */
|
||||
--in_fatal;
|
||||
|
|
@ -213,6 +214,7 @@ setup_signals (void)
|
|||
action.sa_mask = mask;
|
||||
action.sa_flags = 0;
|
||||
sigaction (SIGTERM, &action, NULL);
|
||||
sigaction (SIGINT, &action, NULL);
|
||||
sigaction (SIGILL, &action, NULL);
|
||||
sigaction (SIGBUS, &action, NULL);
|
||||
sigaction (SIGFPE, &action, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue