From a5ba7017834208c749c6fef7de838c72e402878f Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Wed, 22 Feb 2023 14:01:59 +0100 Subject: [PATCH] swanctl: Fix Windows build of --monitor-sas command Fixes: 4784c92c557f ("swanctl: Terminate --monitor-sa command if daemon closes connection") --- src/swanctl/commands/list_sas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/swanctl/commands/list_sas.c b/src/swanctl/commands/list_sas.c index 6989533abd..a4d794c3f5 100755 --- a/src/swanctl/commands/list_sas.c +++ b/src/swanctl/commands/list_sas.c @@ -457,7 +457,7 @@ CALLBACK(close_cb, void, { fprintf(stderr, "connection closed\n"); *ret = ECONNRESET; - kill(0, SIGTERM); + send_sigint(); } static int monitor_sas(vici_conn_t *conn) -- 2.47.2