aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32.c
diff options
context:
space:
mode:
authorGeoff Voelker <[email protected]>1998-04-24 04:35:05 +0000
committerGeoff Voelker <[email protected]>1998-04-24 04:35:05 +0000
commitcaf1a1721277d0e2af2345423f8d78bbd1379bf4 (patch)
treea3a4273a697830c4864fe01bbb9adf6209a427c6 /src/w32.c
parentea444b40e903393b4b59b3cc516c203c5bbfb5a5 (diff)
(sys_socket): Make sockets non-inheritable.
Diffstat (limited to 'src/w32.c')
-rw-r--r--src/w32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/w32.c b/src/w32.c
index 2cdccbe389..42027ae205 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -2180,7 +2180,7 @@ sys_socket(int af, int type, int protocol)
if (!pfn_SetHandleInformation
|| !pfn_SetHandleInformation ((HANDLE) s,
HANDLE_FLAG_INHERIT,
- HANDLE_FLAG_INHERIT))
+ 0))
{
DuplicateHandle (parent,
(HANDLE) s,