cyliu7
2009-Aug-21 08:08 UTC
[Libguestfs] how to clear <defunct> qemu-system-x86 processes
Hi all, I have a long term running program which call libguestfs to check VM images. but i found that each time after i call guestfs_close(), the qeum-system-x86 process which is forked by libguestfs changes to <defunct> process. as docs of guestfs_close said "This closes the connection handle and frees up all resources used.", so this is a bug or is there any other way to clear them. thanks a lot! ------------------------ Chunyang Liu
Richard W.M. Jones
2009-Aug-21 09:26 UTC
[Libguestfs] how to clear <defunct> qemu-system-x86 processes
On Fri, Aug 21, 2009 at 04:08:31PM +0800, cyliu7 wrote:> Hi all, > > I have a long term running program which call libguestfs to check VM > images. but i found that each time after i call guestfs_close(), the > qeum-system-x86 process which is forked by libguestfs changes to > <defunct> process. > > as docs of guestfs_close said "This closes the connection handle and > frees up all resources used.", so this is a bug or is there any other > way to clear them.It should remove them automatically -- in fact it does for me. You'll need to give us some more details about your system: What operating system is this? What version of libguestfs? Did you use our binaries or compile it yourself? Are you using the C API directly? Do you get the same problem from guestfish or from libguestfs-test-tool? Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
Richard W.M. Jones
2009-Aug-22 09:28 UTC
[Libguestfs] how to clear <defunct> qemu-system-x86 processes
On Sat, Aug 22, 2009 at 11:21:20AM +0800, Chunyang Liu wrote:> Hi Richard, > > thanks for your reply. > > i am running libguestfs on: > Linux vmodev03 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 > x86_64 x86_64 GNU/Linux > > libguestfs-1.0.65-2.el5 > > the attachment is my test code.Yes, I've confirmed this is a real bug. I've opened a bugzilla entry for it: https://bugzilla.redhat.com/show_bug.cgi?id=518747 Thanks, Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://et.redhat.com/~rjones/libguestfs/ See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html