* net.cc (cygwin_rexec): Eliminate superfluous call to
`set_socket_inheritance'. * include/sys/socket.h: Add SUS defines for option values to `shutdown'.
This commit is contained in:
parent
772231a055
commit
947411367d
|
@ -1,3 +1,9 @@
|
||||||
|
Tue Dec 5 17:06:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* net.cc (cygwin_rexec): Eliminate superfluous call to
|
||||||
|
`set_socket_inheritance'.
|
||||||
|
* include/sys/socket.h: Add SUS defines for option values to `shutdown'.
|
||||||
|
|
||||||
Sun Dec 10 17:19:04 2000 Christopher Faylor <cgf@cygnus.com>
|
Sun Dec 10 17:19:04 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
* include/sysexits: New file.
|
* include/sysexits: New file.
|
||||||
|
|
|
@ -10,6 +10,11 @@ extern "C"
|
||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* SUS symbolic values for the second parm to shutdown(2) */
|
||||||
|
#define SHUT_RD 0 /* == Win32 SD_RECEIVE */
|
||||||
|
#define SHUT_WR 1 /* == Win32 SD_SEND */
|
||||||
|
#define SHUT_RDWR 2 /* == Win32 SD_BOTH */
|
||||||
|
|
||||||
#ifndef __INSIDE_CYGWIN_NET__
|
#ifndef __INSIDE_CYGWIN_NET__
|
||||||
int accept (int, struct sockaddr *__peer, int *);
|
int accept (int, struct sockaddr *__peer, int *);
|
||||||
int bind (int, struct sockaddr *__my_addr, int __addrlen);
|
int bind (int, struct sockaddr *__my_addr, int __addrlen);
|
||||||
|
|
|
@ -1682,10 +1682,8 @@ cygwin_rexec (char **ahost, unsigned short inport, char *locuser,
|
||||||
res = res_fd;
|
res = res_fd;
|
||||||
}
|
}
|
||||||
if (fd2p)
|
if (fd2p)
|
||||||
{
|
fdsock (*fd2p, "/dev/tcp", fd2s);
|
||||||
fd2s = set_socket_inheritance (fd2s);
|
|
||||||
fdsock (*fd2p, "/dev/tcp", fd2s);
|
|
||||||
}
|
|
||||||
done:
|
done:
|
||||||
syscall_printf ("%d = rexec (...)", res);
|
syscall_printf ("%d = rexec (...)", res);
|
||||||
return res;
|
return res;
|
||||||
|
|
Loading…
Reference in New Issue