swanctl: Stop logging with Ctrl+C on Windows as well
This commit is contained in:
@@ -73,10 +73,11 @@ static int logcmd(vici_conn_t *conn)
|
|||||||
fprintf(stderr, "registering for log failed: %s\n", strerror(errno));
|
fprintf(stderr, "registering for log failed: %s\n", strerror(errno));
|
||||||
return errno;
|
return errno;
|
||||||
}
|
}
|
||||||
while (TRUE)
|
|
||||||
{
|
wait_sigint();
|
||||||
sleep(1);
|
|
||||||
}
|
fprintf(stderr, "disconnecting...\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user