From: Wen Congyang <wency@cn.fujitsu.com>
To: "Andreas Färber" <andreas.faerber@web.de>,
qemu-devel <qemu-devel@nongnu.org>,
"Luiz Capitulino" <lcapitulino@redhat.com>,
"Anthony Liguori" <anthony@codemonkey.ws>
Subject: Re: [Qemu-devel] [PATCH] disable sigcld handling before calling pclose()
Date: Tue, 21 Dec 2010 10:44:45 +0800 [thread overview]
Message-ID: <4D10149D.1070700@cn.fujitsu.com> (raw)
In-Reply-To: <29897010-A575-4C94-8016-C0FC03652B64@web.de>
At 12/20/2010 02:33 PM, Andreas Färber Write:
> Am 20.12.2010 um 02:25 schrieb Wen Congyang:
>
>> At 12/14/2010 05:23 PM, Wen Congyang Write:
>>> At 2010-12-09 11:41, Wen Congyang Write:
>>>> When I use the command 'virsh save' to save the domain state,
>>>> I receive the following error message:
>>>> operation failed: Migration unexpectedly failed.
>>>>
>>>> I debug the qemu by adding some printf(), and find the function
>>>> pclose() returns -1.
>>>>
>>>> I use strace to trace qemu, the log is as the following:
>>>> ======
>>>> close(17) = 0
>>>> --- SIGCHLD (Child exited) @ 0 (0) ---
>>>> wait4(-1, NULL, WNOHANG, NULL) = 22016
>>>> rt_sigreturn(0) = 0
>>>> wait4(22016, 0x7fff7f1034fc, 0, NULL) = -1 ECHILD (No child
>>>> processes)
>>>> ======
>>>>
>>>> We wait the child twice: one is in signal SIGCHLD handling and the
>>>> other
>>>> one is in pclose().
>>>>
>>>> We should disable sigcld handling before calling pclose().
>>>>
>>>> Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
>>>>
>>> Ping :)
>>>
>>>
>>
>> Ping Again... :)
>
> os-posix.c part looks sane to me, but what about Win32? Wouldn't it need
> stub functions?
I do not know whether there is same BUG on Windows.
I will add stub functions for Win32.
>
> Andreas
>
next prev parent reply other threads:[~2010-12-21 2:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-09 3:41 [Qemu-devel] [PATCH] disable sigcld handling before calling pclose() Wen Congyang
2010-12-14 9:23 ` Wen Congyang
2010-12-20 1:25 ` Wen Congyang
2010-12-20 6:33 ` Andreas Färber
2010-12-21 2:44 ` Wen Congyang [this message]
2010-12-21 4:05 ` [Qemu-devel] [PATCH v2] " Wen Congyang
2011-01-05 2:15 ` Wen Congyang
2011-01-05 9:21 ` [Qemu-devel] " Paolo Bonzini
2011-03-03 3:10 ` [Qemu-devel] " Wen Congyang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D10149D.1070700@cn.fujitsu.com \
--to=wency@cn.fujitsu.com \
--cc=andreas.faerber@web.de \
--cc=anthony@codemonkey.ws \
--cc=lcapitulino@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.