diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2012-05-12 07:54:33 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-05-12 12:09:27 +0200 |
commit | 0b1bfac99a01db54396875ca49987f4117061990 (patch) | |
tree | df6311f4dce366356848c23a4d9c563080ad2803 /src | |
parent | 17e89e90ce48989cd9454a8a3dcf04532fc50237 (diff) |
Inheritance on signaler's socket on Windows switched off
Accidentally, one of the sockets in Windows signaler_t
was opened usign WSASocket instead of xs::open_socket.
That skipped the standard XS socket initialisation
and caused the socket to be inheritable to the child
processes.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/signaler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/signaler.cpp b/src/signaler.cpp index 8fff9b4..9b8f1d7 100644 --- a/src/signaler.cpp +++ b/src/signaler.cpp @@ -138,7 +138,7 @@ static int make_fdpair (xs::fd_t *r_, xs::fd_t *w_) wsa_assert (rc != SOCKET_ERROR); // Create the writer socket. - *w_ = WSASocket (AF_INET, SOCK_STREAM, 0, NULL, 0, 0); + *w_ = xs::open_socket (AF_INET, SOCK_STREAM, 0); if (*w_ == xs::retired_fd) { rc = closesocket (listener); wsa_assert (rc != SOCKET_ERROR); |