revert timeout length

This commit is contained in:
Chris Danford
2004-10-09 16:56:29 +00:00
parent af7a0cf3a2
commit 79beff5e26
@@ -122,13 +122,12 @@ bool MutexImpl_Pthreads::Lock()
#if defined(HAVE_PTHREAD_MUTEX_TIMEDLOCK) #if defined(HAVE_PTHREAD_MUTEX_TIMEDLOCK)
if( UseTimedlock() ) if( UseTimedlock() )
{ {
int len = 30; /* seconds */ int len = 10; /* seconds */
int tries = 2; int tries = 2;
while( tries-- ) while( tries-- )
{ {
/* Wait for 30 seconds. This timeout has to be long enough to allow for /* Wait for ten seconds. If it takes longer than that, we're
* for a call to 'mount' to timeout. If it takes longer than that, we're
* probably deadlocked. */ * probably deadlocked. */
timeval tv; timeval tv;
gettimeofday( &tv, NULL ); gettimeofday( &tv, NULL );