| Submitter | Michael Roth |
|---|---|
| Date | Jan. 16, 2013, 4:49 p.m. |
| Message ID | <1358354963-9070-2-git-send-email-mdroth@linux.vnet.ibm.com> |
| Download | mbox | patch |
| Permalink | /patch/212820/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/qemu-thread-posix.c b/qemu-thread-posix.c index 4ef9c7b..9a3885f 100644 --- a/qemu-thread-posix.c +++ b/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) {