From caf1a1721277d0e2af2345423f8d78bbd1379bf4 Mon Sep 17 00:00:00 2001 From: Geoff Voelker Date: Fri, 24 Apr 1998 04:35:05 +0000 Subject: [PATCH] (sys_socket): Make sockets non-inheritable. --- src/w32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/w32.c b/src/w32.c index 2cdccbe389a..42027ae2052 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, -- 2.39.2