From d4f3ce316cf6c5e3f1d7a6af1a2721f851be8879 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 20 May 2003 15:22:09 +0000 Subject: * fhandler_socket.cc (SECRET_EVENT_NAME): Remove. (ENTROPY_SOURCE_NAME): Ditto. (secret_event_name): New static function. Create shared event name with "Global\" prefix on systems supporting terminal services. (fhandler_socket::set_connect_secret): Fix conditional. (fhandler_socket::create_secret_event): Create secret event using secret_event_name(). (fhandler_socket::close_secret_event): Ditto. * shared.cc (shared_name): Create shared object name with "Global\" prefix on systems supporting terminal services. * wincap.cc: Set has_terminal_services capability throughout. (wincap_2003): New global object representing Windows 2003 Server capabilities. (wincapc::init): Accomodate Windows 2003 Server. * wincap.h (struct wincaps): Add has_terminal_services capability. --- winsup/cygwin/shared.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/shared.cc') diff --git a/winsup/cygwin/shared.cc b/winsup/cygwin/shared.cc index ae30e73f7..2a6ae9087 100644 --- a/winsup/cygwin/shared.cc +++ b/winsup/cygwin/shared.cc @@ -38,7 +38,9 @@ shared_name (const char *str, int num) static NO_COPY char buf[MAX_PATH] = {0}; extern bool _cygwin_testing; - __small_sprintf (buf, "%s.%s.%d", cygwin_version.shared_id, str, num); + __small_sprintf (buf, "%s%s.%s.%d", + wincap.has_terminal_services () ? "Global\\" : "", + cygwin_version.shared_id, str, num); if (_cygwin_testing) strcat (buf, cygwin_version.dll_build_date); return buf; -- cgit v1.2.3