From: cgf Date: Mon, 30 Dec 2002 23:08:35 +0000 (+0000) Subject: * exceptions.cc (events_init): Display name of mutex on failure. X-Git-Tag: cr-0x99~4259 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=1ed8b7289311ac4250118ff6fe7efae30d0d72a0;p=pf3gnuchains%2Fpf3gnuchains4x.git * exceptions.cc (events_init): Display name of mutex on failure. --- diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 25c789dc16..988572bb17 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,9 @@ 2002-12-30 Christopher Faylor + * exceptions.cc (events_init): Display name of mutex on failure. + +2002-12-30 Christopher Faylor + * windows.cc (setitimer): Return ENOSYS on invalid argument. 2002-12-28 Christopher Faylor diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index dc59dc5a46..5176180b3d 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -1129,12 +1129,13 @@ HANDLE NO_COPY title_mutex = NULL; void events_init (void) { + char *name; /* title_mutex protects modification of console title. It's neccessary while finding console window handle */ if (!(title_mutex = CreateMutex (&sec_all_nih, FALSE, - shared_name ("title_mutex", 0)))) - api_fatal ("can't create title mutex, %E"); + name = shared_name ("title_mutex", 0)))) + api_fatal ("can't create title mutex '%s', %E", name); ProtectHandle (title_mutex); new_muto (mask_sync);