diff options
author | Christopher Faylor <me@cgf.cx> | 2002-12-30 23:08:35 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-12-30 23:08:35 +0000 |
commit | c71ed71f592b1099efacfdd72b4c8772990dcbf0 (patch) | |
tree | 47a35ba59bb1f4d3552cd0c58f14616733103423 | |
parent | f715db84b6d37834078b97bef0d82d61144959f1 (diff) | |
download | newlib-c71ed71f592b1099efacfdd72b4c8772990dcbf0.zip newlib-c71ed71f592b1099efacfdd72b4c8772990dcbf0.tar.gz newlib-c71ed71f592b1099efacfdd72b4c8772990dcbf0.tar.bz2 |
* exceptions.cc (events_init): Display name of mutex on failure.
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/exceptions.cc | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 25c789d..988572b 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,9 @@ 2002-12-30 Christopher Faylor <cgf@redhat.com> + * exceptions.cc (events_init): Display name of mutex on failure. + +2002-12-30 Christopher Faylor <cgf@redhat.com> + * windows.cc (setitimer): Return ENOSYS on invalid argument. 2002-12-28 Christopher Faylor <cgf@redhat.com> diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index dc59dc5..5176180 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); |