mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 16:21:01 +00:00
Oops, res contains the error code, not errno. I was wondering why a mutex was reporting "No such file or directory"...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@76934 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -268,7 +268,7 @@ static inline int __ast_pthread_mutex_lock(const char *filename, int lineno, con
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
__ast_mutex_logger("%s line %d (%s): Error obtaining mutex: %s\n",
|
__ast_mutex_logger("%s line %d (%s): Error obtaining mutex: %s\n",
|
||||||
filename, lineno, func, strerror(errno));
|
filename, lineno, func, strerror(res));
|
||||||
#ifdef THREAD_CRASH
|
#ifdef THREAD_CRASH
|
||||||
DO_THREAD_CRASH;
|
DO_THREAD_CRASH;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user