]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
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)
commitfd6d9bd677cbb2a1a56060d118f4d56b61c82244
treea5f131910631442cea5b1635f5c66691394f11a4
parent230d400ddc4e802b64b9664431c9429bfb4cfd66
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.

[originally from svn r6917]
unix/uxagentc.c
unix/uxnet.c
unix/uxpty.c
unix/uxser.c