diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2000-12-11 22:45:54 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2000-12-11 22:45:54 +0300 |
commit | 947411367d78a0fcbecb21f47711bce31c5a0d08 (patch) | |
tree | 397dfac2979317e5550ae50f7fc15843ae81645c /winsup/cygwin/net.cc | |
parent | 772231a0550283e1fa78bfc3cf3bc49014c0e239 (diff) |
* net.cc (cygwin_rexec): Eliminate superfluous call to
`set_socket_inheritance'.
* include/sys/socket.h: Add SUS defines for option values to `shutdown'.
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r-- | winsup/cygwin/net.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index 08d076a6d..65a68bedb 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -1682,10 +1682,8 @@ cygwin_rexec (char **ahost, unsigned short inport, char *locuser, res = res_fd; } if (fd2p) - { - fd2s = set_socket_inheritance (fd2s); - fdsock (*fd2p, "/dev/tcp", fd2s); - } + fdsock (*fd2p, "/dev/tcp", fd2s); + done: syscall_printf ("%d = rexec (...)", res); return res; |