- It's a serious error if we can't lock or unlock a mutex in
smb_thread_once(). Panic instead of just displaying a DEBUG message.
Derrell
/* Lock our "once" mutex in order to test and initialize ponce */
if ((ret = SMB_THREAD_LOCK(once_mutex, SMB_THREAD_LOCK)) != 0) {
/* Lock our "once" mutex in order to test and initialize ponce */
if ((ret = SMB_THREAD_LOCK(once_mutex, SMB_THREAD_LOCK)) != 0) {
- DEBUG(0, ("error locking 'once': %d\n", ret));
+ smb_panic("error locking 'once'");
}
/* Store whether we're going to need to issue the function call */
}
/* Store whether we're going to need to issue the function call */
/* Unlock the mutex */
if ((ret = SMB_THREAD_LOCK(once_mutex, SMB_THREAD_UNLOCK)) != 0) {
/* Unlock the mutex */
if ((ret = SMB_THREAD_LOCK(once_mutex, SMB_THREAD_UNLOCK)) != 0) {
- DEBUG(0, ("error unlocking 'once': %d\n", ret));
+ smb_panic("error unlocking 'once'");
}
/* Finally, if we need to call the user-provided function, ... */
}
/* Finally, if we need to call the user-provided function, ... */