vlib: leave SIGCONT signal with its default handler 20/35720/3
authorVladislav Grishenko <themiron@yandex-team.ru>
Sun, 20 Mar 2022 21:21:42 +0000 (02:21 +0500)
committerDamjan Marion <dmarion@me.com>
Wed, 23 Mar 2022 18:24:56 +0000 (18:24 +0000)
Systemd always sends SIGCONT after KillSignal, to ensure that even suspended
tasks can be terminated cleanly. However, the default action of SIGCONT
handler in VPP such as unix_signal_handler() is process termination with
coredump, what is not really desired. So, leave it alike SIGSTOP with its
default handler.

Type: feature
Signed-off-by: Vladislav Grishenko <themiron@yandex-team.ru>
Change-Id: I54c06d21669ec3c709322d746db9e28448c31bb8

src/vat/main.c
src/vlib/unix/main.c
src/vpp/api/vpp_get_metrics.c

index d052493..1640c5d 100644 (file)
@@ -267,6 +267,7 @@ setup_signal_handlers (void)
          /* these signals take the default action */
        case SIGABRT:
        case SIGKILL:
+       case SIGCONT:
        case SIGSTOP:
        case SIGUSR1:
        case SIGUSR2:
index 69959fd..8e06bfa 100644 (file)
@@ -210,6 +210,7 @@ setup_signal_handlers (unix_main_t * um)
        {
          /* these signals take the default action */
        case SIGKILL:
+       case SIGCONT:
        case SIGSTOP:
        case SIGUSR1:
        case SIGUSR2:
index 41d2393..a3860ab 100644 (file)
@@ -77,6 +77,7 @@ setup_signal_handlers (void)
          /* these signals take the default action */
        case SIGABRT:
        case SIGKILL:
+       case SIGCONT:
        case SIGSTOP:
        case SIGUSR1:
        case SIGUSR2: