]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Make Windows sockets non-inheritable
authorOwen Dunn <owen@greenend.org.uk>
Sun, 19 Feb 2017 13:49:12 +0000 (13:49 +0000)
committerOwen Dunn <owen@greenend.org.uk>
Sun, 19 Feb 2017 14:04:58 +0000 (14:04 +0000)
commit4455604dbce2d175ce1d601d51472bb1b0a535d8
tree768253f512e67c6317f81a18c3e7b63fdebf22c7
parentefb4996d31588d82275e248426bb1046eedd570a
Make Windows sockets non-inheritable

When we create a socket with socket() (in try_connect, sk_newlistener, and
ipv4_is_local_addr) also call SetHandleInformation to disable handle
inheritance for this socket.  This fixes dup-sessions-dont-close.
windows/winnet.c