mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-01 19:17:48 +08:00
Squashed warning on Windows, using INVALID_SOCKET
This commit is contained in:
parent
4fbfb5d0d0
commit
c88b7b19b3
@ -852,7 +852,7 @@ static void open_cgi_endpoint(struct connection *conn, const char *prog) {
|
||||
// TODO(lsm): use sigaction to restart interrupted syscall
|
||||
do {
|
||||
mg_socketpair(fds);
|
||||
} while (fds[0] < 0);
|
||||
} while (fds[0] == INVALID_SOCKET);
|
||||
|
||||
if (start_process(conn->server->config_options[CGI_INTERPRETER],
|
||||
prog, blk.buf, blk.vars, dir, fds[1]) > 0) {
|
||||
@ -3603,7 +3603,7 @@ struct mg_server *mg_create_server(void *server_data) {
|
||||
// interrupted syscalls in mg_socketpair().
|
||||
do {
|
||||
mg_socketpair(server->ctl);
|
||||
} while (server->ctl[0] < 0);
|
||||
} while (server->ctl[0] == INVALID_SOCKET);
|
||||
|
||||
server->server_data = server_data;
|
||||
server->listening_sock = INVALID_SOCKET;
|
||||
|
Loading…
x
Reference in New Issue
Block a user