diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 95c47c491..a9189adc6 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -1783,8 +1783,7 @@ fhandler_pty_master::setup () | FILE_FLAG_FIRST_PIPE_INSTANCE, PIPE_WAIT | PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE - | (wincap.has_pipe_reject_remote_clients () - ? PIPE_REJECT_REMOTE_CLIENTS : 0), + | PIPE_REJECT_REMOTE_CLIENTS, 1, 4096, 4096, 0, &sec_all_nih); if (master_ctl == INVALID_HANDLE_VALUE) { diff --git a/winsup/cygwin/pipe.cc b/winsup/cygwin/pipe.cc index 4ccfef69c..5f4df131b 100644 --- a/winsup/cygwin/pipe.cc +++ b/winsup/cygwin/pipe.cc @@ -229,9 +229,7 @@ fhandler_pipe::create (LPSECURITY_ATTRIBUTES sa_ptr, PHANDLE r, PHANDLE w, char pipename[MAX_PATH]; size_t len = __small_sprintf (pipename, PIPE_INTRO "%S-", &cygheap->installation_key); - DWORD pipe_mode = PIPE_READMODE_BYTE - | (wincap.has_pipe_reject_remote_clients () - ? PIPE_REJECT_REMOTE_CLIENTS : 0); + DWORD pipe_mode = PIPE_READMODE_BYTE | PIPE_REJECT_REMOTE_CLIENTS; if (!name) pipe_mode |= pipe_byte ? PIPE_TYPE_BYTE : PIPE_TYPE_MESSAGE; else diff --git a/winsup/cygwin/wincap.cc b/winsup/cygwin/wincap.cc index dd2bdff98..eb9f5c0a1 100644 --- a/winsup/cygwin/wincap.cc +++ b/winsup/cygwin/wincap.cc @@ -25,7 +25,6 @@ wincaps wincap_xpsp2 __attribute__((section (".cygwin_dll_common"), shared)) = { has_gaa_largeaddress_bug:false, has_broken_alloc_console:false, has_console_logon_sid:false, - has_pipe_reject_remote_clients:false, terminate_thread_frees_stack:false, has_precise_system_time:false, has_microsoft_accounts:false, @@ -44,7 +43,6 @@ wincaps wincap_2003 __attribute__((section (".cygwin_dll_common"), shared)) = { has_gaa_largeaddress_bug:false, has_broken_alloc_console:false, has_console_logon_sid:false, - has_pipe_reject_remote_clients:false, terminate_thread_frees_stack:false, has_precise_system_time:false, has_microsoft_accounts:false, @@ -63,7 +61,6 @@ wincaps wincap_vista __attribute__((section (".cygwin_dll_common"), shared)) = { has_gaa_largeaddress_bug:true, has_broken_alloc_console:false, has_console_logon_sid:false, - has_pipe_reject_remote_clients:true, terminate_thread_frees_stack:true, has_precise_system_time:false, has_microsoft_accounts:false, @@ -82,7 +79,6 @@ wincaps wincap_7 __attribute__((section (".cygwin_dll_common"), shared)) = { has_gaa_largeaddress_bug:true, has_broken_alloc_console:true, has_console_logon_sid:true, - has_pipe_reject_remote_clients:true, terminate_thread_frees_stack:true, has_precise_system_time:false, has_microsoft_accounts:false, @@ -101,7 +97,6 @@ wincaps wincap_8 __attribute__((section (".cygwin_dll_common"), shared)) = { has_gaa_largeaddress_bug:false, has_broken_alloc_console:true, has_console_logon_sid:true, - has_pipe_reject_remote_clients:true, terminate_thread_frees_stack:true, has_precise_system_time:true, has_microsoft_accounts:true, @@ -120,7 +115,6 @@ wincaps wincap_10 __attribute__((section (".cygwin_dll_common"), shared)) = { has_gaa_largeaddress_bug:false, has_broken_alloc_console:true, has_console_logon_sid:true, - has_pipe_reject_remote_clients:true, terminate_thread_frees_stack:true, has_precise_system_time:true, has_microsoft_accounts:true, @@ -139,7 +133,6 @@ wincaps wincap_10_1511 __attribute__((section (".cygwin_dll_common"), shared)) = has_gaa_largeaddress_bug:false, has_broken_alloc_console:true, has_console_logon_sid:true, - has_pipe_reject_remote_clients:true, terminate_thread_frees_stack:true, has_precise_system_time:true, has_microsoft_accounts:true, diff --git a/winsup/cygwin/wincap.h b/winsup/cygwin/wincap.h index b3e613442..391cce74c 100644 --- a/winsup/cygwin/wincap.h +++ b/winsup/cygwin/wincap.h @@ -18,7 +18,6 @@ struct wincaps unsigned has_gaa_largeaddress_bug : 1; unsigned has_broken_alloc_console : 1; unsigned has_console_logon_sid : 1; - unsigned has_pipe_reject_remote_clients : 1; unsigned terminate_thread_frees_stack : 1; unsigned has_precise_system_time : 1; unsigned has_microsoft_accounts : 1; @@ -62,7 +61,6 @@ public: bool IMPLEMENT (has_gaa_largeaddress_bug) bool IMPLEMENT (has_broken_alloc_console) bool IMPLEMENT (has_console_logon_sid) - bool IMPLEMENT (has_pipe_reject_remote_clients) bool IMPLEMENT (terminate_thread_frees_stack) bool IMPLEMENT (has_precise_system_time) bool IMPLEMENT (has_microsoft_accounts)