Skip to content

Commit b8a754f

Browse files
benh-debianchucklever
authored andcommitted
netlink: Handle SIGTERM like SIGINT
systemd's default stop signal and the kill command's default signal are SIGTERM. Catch this as well as SIGINT. Signed-off-by: Ben Hutchings <benh@debian.org>
1 parent 05398cd commit b8a754f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tlshd/netlink.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ void tlshd_genl_dispatch(void)
159159
/* Initialise signal poll mask */
160160
sigemptyset(&tlshd_sig_poll_mask);
161161
sigaddset(&tlshd_sig_poll_mask, SIGINT);
162+
sigaddset(&tlshd_sig_poll_mask, SIGTERM);
162163

163164
err = tlshd_genl_sock_open(&tlshd_notification_nls);
164165
if (err)

0 commit comments

Comments
 (0)