host_spawn: Force kill f-b after forwarding INT/TERM

Otherwise we will just re-enter after INT and forward a TERM.

Closes: #195
Approved by: alexlarsson
auto
Alexander Larsson 2018-08-08 10:36:10 +02:00 committed by Atomic Bot
parent a594fed33f
commit d7200a4af4
1 changed files with 2 additions and 2 deletions

View File

@ -1574,7 +1574,7 @@ sigterm_handler (gpointer user_data)
G_DBUS_CALL_FLAGS_NONE, -1, G_DBUS_CALL_FLAGS_NONE, -1,
NULL, NULL); NULL, NULL);
kill (getpid (), SIGTERM); kill (getpid (), SIGKILL);
return TRUE; return TRUE;
} }
@ -1593,7 +1593,7 @@ sigint_handler (gpointer user_data)
G_DBUS_CALL_FLAGS_NONE, -1, G_DBUS_CALL_FLAGS_NONE, -1,
NULL, NULL); NULL, NULL);
kill (getpid (), SIGTERM); kill (getpid (), SIGKILL);
return TRUE; return TRUE;
} }