qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Fix semaphores fallback code


From: Blue Swirl
Subject: Re: [Qemu-devel] [PATCH] Fix semaphores fallback code
Date: Sat, 29 Dec 2012 15:49:36 +0000

Thanks, applied.

On Fri, Dec 28, 2012 at 6:00 AM, Brad Smith <address@hidden> wrote:
> As reported in bug 1087114 the semaphores fallback code is broken which
> results in QEMU crashing and making QEMU unusable.
>
> This patch is from Paolo.
>
> This needs to be back ported to the 1.3 stable tree as well.
>
> Signed-off-by: Paolo Bonzini <address@hidden>
> Signed-off-by: Brad Smith <address@hidden>
>
>
> 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) {
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]