projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
I've just discovered that using the saved sessions menu from Unix
[u/mdw/putty]
/
unix
/
uxnet.c
diff --git
a/unix/uxnet.c
b/unix/uxnet.c
index
d01a44d
..
2b3d8cb
100644
(file)
--- a/
unix/uxnet.c
+++ b/
unix/uxnet.c
@@
-470,6
+470,8
@@
static int try_connect(Actual_Socket sock)
goto ret;
}
goto ret;
}
+ fcntl(s, F_SETFD, FD_CLOEXEC);
+
if (sock->oobinline) {
int b = TRUE;
setsockopt(s, SOL_SOCKET, SO_OOBINLINE, (void *) &b, sizeof(b));
if (sock->oobinline) {
int b = TRUE;
setsockopt(s, SOL_SOCKET, SO_OOBINLINE, (void *) &b, sizeof(b));
@@
-723,6
+725,8
@@
Socket sk_newlistener(char *srcaddr, int port, Plug plug, int local_host_only, i
return (Socket) ret;
}
return (Socket) ret;
}
+ fcntl(s, F_SETFD, FD_CLOEXEC);
+
ret->oobinline = 0;
setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (const char *)&on, sizeof(on));
ret->oobinline = 0;
setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (const char *)&on, sizeof(on));