]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
swanctl: Fix Windows build of --monitor-sas command
authorTobias Brunner <tobias@strongswan.org>
Wed, 22 Feb 2023 13:01:59 +0000 (14:01 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 22 Feb 2023 13:33:34 +0000 (14:33 +0100)
Fixes: 4784c92c557f ("swanctl: Terminate --monitor-sa command if daemon closes connection")
src/swanctl/commands/list_sas.c

index 6989533abd27bd67767d787670fd01fe7ee06f8e..a4d794c3f53132312bf0caea3f6c5d3480a7f735 100755 (executable)
@@ -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)