Mercurial > emacs
comparison src/w32.c @ 21747:c11ef8945466
(sys_socket): Make sockets non-inheritable.
author | Geoff Voelker <voelker@cs.washington.edu> |
---|---|
date | Fri, 24 Apr 1998 04:35:05 +0000 |
parents | d0b03ce6dcf5 |
children | c33bec4d9e67 |
comparison
equal
deleted
inserted
replaced
21746:2f7dcebcb9fd | 21747:c11ef8945466 |
---|---|
2178 hang). The work-around is to use SetHandleInformation | 2178 hang). The work-around is to use SetHandleInformation |
2179 instead if it is available and implemented. */ | 2179 instead if it is available and implemented. */ |
2180 if (!pfn_SetHandleInformation | 2180 if (!pfn_SetHandleInformation |
2181 || !pfn_SetHandleInformation ((HANDLE) s, | 2181 || !pfn_SetHandleInformation ((HANDLE) s, |
2182 HANDLE_FLAG_INHERIT, | 2182 HANDLE_FLAG_INHERIT, |
2183 HANDLE_FLAG_INHERIT)) | 2183 0)) |
2184 { | 2184 { |
2185 DuplicateHandle (parent, | 2185 DuplicateHandle (parent, |
2186 (HANDLE) s, | 2186 (HANDLE) s, |
2187 parent, | 2187 parent, |
2188 &new_s, | 2188 &new_s, |