diff options
Diffstat (limited to 'locks/os2/proc_mutex.c')
-rw-r--r-- | locks/os2/proc_mutex.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/locks/os2/proc_mutex.c b/locks/os2/proc_mutex.c index 564c49cf6..de2e66aeb 100644 --- a/locks/os2/proc_mutex.c +++ b/locks/os2/proc_mutex.c @@ -166,10 +166,7 @@ APR_DECLARE(apr_status_t) apr_proc_mutex_timedlock(apr_proc_mutex_t *mutex, { ULONG rc; - if (timeout < 0) { - rc = DosRequestMutexSem(mutex->hMutex, SEM_INDEFINITE_WAIT); - } - else if (!timeout) { + if (timeout <= 0) { rc = DosRequestMutexSem(mutex->hMutex, SEM_IMMEDIATE_RETURN); } else { |