I've just discovered that using the saved sessions menu from Unix
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 23 Nov 2006 14:32:11 +0000 (14:32 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 23 Nov 2006 14:32:11 +0000 (14:32 +0000)
commit89e97516fedf1d0a7fe9c569bb569fa7ea872afa
treea5f131910631442cea5b1635f5c66691394f11a4
parentfe75e5033cd83f2ddc537457d96625044d168433
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: svn://svn.tartarus.org/sgt/putty@6917 cda61777-01e9-0310-a592-d414129be87e
unix/uxagentc.c
unix/uxnet.c
unix/uxpty.c
unix/uxser.c