diff options
author | Ken Brown <kbrown@cornell.edu> | 2020-10-04 11:05:33 -0400 |
---|---|---|
committer | Ken Brown <kbrown@cornell.edu> | 2020-10-04 12:53:05 -0400 |
commit | 2031b48c93512e644d18d7ed71263fe27ca1eac6 (patch) | |
tree | f6c9fe0c8a194cfb59151d0cf211bc5219e80327 | |
parent | 6748c6ecf86947964a358f53e3a6c0b63849cf33 (diff) | |
download | cygnal-2031b48c93512e644d18d7ed71263fe27ca1eac6.tar.gz cygnal-2031b48c93512e644d18d7ed71263fe27ca1eac6.tar.bz2 cygnal-2031b48c93512e644d18d7ed71263fe27ca1eac6.zip |
Cygwin: AF_UNIX: open_pipe: call recv_peer_info
If open_pipe is called with xchg_sock_info true, call recv_peer_info
in addition to send_sock_info.
-rw-r--r-- | winsup/cygwin/fhandler_socket_unix.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_socket_unix.cc b/winsup/cygwin/fhandler_socket_unix.cc index 1a9532fe5..9f7f86c47 100644 --- a/winsup/cygwin/fhandler_socket_unix.cc +++ b/winsup/cygwin/fhandler_socket_unix.cc @@ -941,7 +941,11 @@ fhandler_socket_unix::open_pipe (PUNICODE_STRING pipe_name, bool xchg_sock_info) { set_handle (ph); if (xchg_sock_info) - send_sock_info (false); + { + /* FIXME: Should we check for errors? */ + send_sock_info (false); + recv_peer_info (); + } } return status; } |