[svn-commits] mjordan: branch mjordan/trunk-deadlock r376230 - /team/mjordan/trunk-deadlock...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Nov 14 09:10:04 CST 2012


Author: mjordan
Date: Wed Nov 14 09:09:59 2012
New Revision: 376230

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=376230
Log:
Bomb on more lock failures

Modified:
    team/mjordan/trunk-deadlock/include/asterisk/lock.h

Modified: team/mjordan/trunk-deadlock/include/asterisk/lock.h
URL: http://svnview.digium.com/svn/asterisk/team/mjordan/trunk-deadlock/include/asterisk/lock.h?view=diff&rev=376230&r1=376229&r2=376230
==============================================================================
--- team/mjordan/trunk-deadlock/include/asterisk/lock.h (original)
+++ team/mjordan/trunk-deadlock/include/asterisk/lock.h Wed Nov 14 09:09:59 2012
@@ -436,6 +436,7 @@
 	res = pthread_mutex_lock(&lt->reentr_mutex);
 	if (res) {
 		fprintf(stderr, "Failed to lock reentrancy mutex: %s[%d]\n", strerror(res), res);
+		abort();
 	}
 	return res;
 }
@@ -446,6 +447,7 @@
 	res = pthread_mutex_unlock(&lt->reentr_mutex);
 	if (res) {
 		fprintf(stderr, "Failed to unlock reentrancy mutex: %s[%d]\n", strerror(res), res);
+		abort();
 	}
 	return res;
 }




More information about the svn-commits mailing list