| Submitter | Paolo Bonzini |
|---|---|
| Date | Dec. 27, 2012, 11:48 a.m. |
| Message ID | <50DC35A8.201@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/208297/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/util/qemu-thread-posix.c b/util/qemu-thread-posix.c index 7be292e..17f2d7c 100644 --- a/util/qemu-thread-posix.c +++ b/util/qemu-thread-posix.c @@ -213,6 +213,7 @@ int qemu_sem_timedwait(QemuSemaphore *sem, int ms) while (sem->count < 0) { rc = pthread_cond_timedwait(&sem->cond, &sem->lock, &ts); if (rc == ETIMEDOUT) { + ++sem->count; break; } if (rc != 0) {