* exceptions.cc (events_init): Display name of mutex on failure.
This commit is contained in:
		| @@ -1,3 +1,7 @@ | |||||||
|  | 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> | 2002-12-30  Christopher Faylor  <cgf@redhat.com> | ||||||
|  |  | ||||||
| 	* windows.cc (setitimer): Return ENOSYS on invalid argument. | 	* windows.cc (setitimer): Return ENOSYS on invalid argument. | ||||||
|   | |||||||
| @@ -1129,12 +1129,13 @@ HANDLE NO_COPY title_mutex = NULL; | |||||||
| void | void | ||||||
| events_init (void) | events_init (void) | ||||||
| { | { | ||||||
|  |   char *name; | ||||||
|   /* title_mutex protects modification of console title. It's neccessary |   /* title_mutex protects modification of console title. It's neccessary | ||||||
|      while finding console window handle */ |      while finding console window handle */ | ||||||
|  |  | ||||||
|   if (!(title_mutex = CreateMutex (&sec_all_nih, FALSE, |   if (!(title_mutex = CreateMutex (&sec_all_nih, FALSE, | ||||||
| 				   shared_name ("title_mutex", 0)))) | 				   name = shared_name ("title_mutex", 0)))) | ||||||
|     api_fatal ("can't create title mutex, %E"); |     api_fatal ("can't create title mutex '%s', %E", name); | ||||||
|  |  | ||||||
|   ProtectHandle (title_mutex); |   ProtectHandle (title_mutex); | ||||||
|   new_muto (mask_sync); |   new_muto (mask_sync); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user