]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/commit - unix/uxnet.c
I've just discovered that using the saved sessions menu from Unix
authorSimon Tatham <anakin@pobox.com>
Thu, 23 Nov 2006 14:32:11 +0000 (14:32 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 23 Nov 2006 14:32:11 +0000 (14:32 +0000)
commitc60919366d5a66503c519e29bd316bc7d9b8cffb
treea5f131910631442cea5b1635f5c66691394f11a4
parent5ccaacb59bfd2294a7a15d976118d947d8136c56
I've just discovered that using the saved sessions menu from Unix
PuTTY causes the child process to inherit a lot of socket fds from
its parent, which is a pain if one of them then ends up holding open
a listening socket which the parent was using for port forwarding
after the parent itself is dead.

Therefore, this checkin sprinkles FD_CLOEXEC throughout the Unix
platform directory wherever there looks like being a long-lived fd.

git-svn-id: http://svn.tartarus.org/sgt/putty@6917 cda61777-01e9-0310-a592-d414129be87e
unix/uxagentc.c
unix/uxnet.c
unix/uxpty.c
unix/uxser.c