swanctl: Stop logging with Ctrl+C on Windows as well

This commit is contained in:
Martin Willi
2014-06-04 15:53:12 +02:00
parent dfb23fa159
commit f59e2b7bb3
+5 -4
View File
@@ -73,10 +73,11 @@ static int logcmd(vici_conn_t *conn)
fprintf(stderr, "registering for log failed: %s\n", strerror(errno));
return errno;
}
while (TRUE)
{
sleep(1);
}
wait_sigint();
fprintf(stderr, "disconnecting...\n");
return 0;
}