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

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Nov 8 09:49:21 CST 2012


Author: mjordan
Date: Thu Nov  8 09:49:18 2012
New Revision: 376028

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=376028
Log:
Lets not spam ourselves

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=376028&r1=376027&r2=376028
==============================================================================
--- team/mjordan/trunk-deadlock/include/asterisk/lock.h (original)
+++ team/mjordan/trunk-deadlock/include/asterisk/lock.h Thu Nov  8 09:49:18 2012
@@ -432,9 +432,10 @@
 {
 	int res;
 	while ((res = pthread_mutex_trylock(&lt->reentr_mutex))) {
-		fprintf(stderr, "Failed to lock reentrancy mutex: %s[%d]\n", strerror(res), res);
 		if (res == EINVAL) {
 			break;
+		} else if (res == EAGAIN) {
+			fprintf(stderr, "Failed to lock reentrancy mutex: %s[%d]\n", strerror(res), res);
 		}
 		usleep(10);
 	}




More information about the svn-commits mailing list