diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2018-03-07 15:48:21 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2018-03-07 16:06:57 +0100 |
commit | 2f2a75b7bbf521057f3e8e502f1a6641a2baf376 (patch) | |
tree | 319301b597117d1ce2099dc8e870a6f81968d987 /winsup/cygwin/globals.cc | |
parent | d69bcdd671539caea906f18e327dfd2eb9f1da85 (diff) | |
download | newlib-2f2a75b7bbf521057f3e8e502f1a6641a2baf376.zip newlib-2f2a75b7bbf521057f3e8e502f1a6641a2baf376.tar.gz newlib-2f2a75b7bbf521057f3e8e502f1a6641a2baf376.tar.bz2 |
Cygwin: AF_UNIX: fix creation of npfs handle
The handle to the device is never needed. As the name impies,
FSCTL_PIPE_WAIT works on the file system, not on the device level.
Drop opening the device and make sure to open only one handle to NPFS.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/globals.cc')
-rw-r--r-- | winsup/cygwin/globals.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/globals.cc b/winsup/cygwin/globals.cc index 9dac030..7c84eb6 100644 --- a/winsup/cygwin/globals.cc +++ b/winsup/cygwin/globals.cc @@ -149,8 +149,7 @@ const int __collate_load_error = 0; extern UNICODE_STRING _RDATA ro_u_natdir = _ROU (L"Directory"); extern UNICODE_STRING _RDATA ro_u_natsyml = _ROU (L"SymbolicLink"); extern UNICODE_STRING _RDATA ro_u_natdev = _ROU (L"Device"); - extern UNICODE_STRING _RDATA ro_u_npfs = _ROU (L"\\Device\\NamedPipe"); - extern UNICODE_STRING _RDATA ro_u_npfs_dir = _ROU (L"\\Device\\NamedPipe\\"); + extern UNICODE_STRING _RDATA ro_u_npfs = _ROU (L"\\Device\\NamedPipe\\"); #undef _ROU /* This is an exported copy of environ which can be used by DLLs |