Bug 518747
Summary: | qemu process remains defunct after guestfs_close | ||||||
---|---|---|---|---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | Richard W.M. Jones <rjones> | ||||
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | ||||
Status: | CLOSED UPSTREAM | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | unspecified | CC: | mbooth, virt-maint | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2010-03-27 10:48:35 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Also occurs on Fedora Rawhide. Posted a patch to potentially fix this: https://www.redhat.com/archives/libguestfs/2009-August/msg00423.html libguestfs-1.0.70-1.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/libguestfs-1.0.70-1.fc11 libguestfs-1.0.70-1.el5 has been submitted as an update for Fedora EPEL 5. http://admin.fedoraproject.org/updates/libguestfs-1.0.70-1.el5 libguestfs-1.0.70-1.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report. Long fixed upstream. |
Created attachment 358299 [details] test.c (Reported by Chunyang Liu) After calling guestfs_close from the test program attached, the qemu process remains in the defunct state until the main program exits. 26100 pts/1 Z+ 0:21 [qemu] <defunct> Apparently we are missing a wait() somewhere. Reported and verified on EPEL 5.3. $ gcc -Wall -o test test.c -lguestfs $ ./test Handle closed - now run 'ps ax' to see if qemu process is defunct [in another window] $ ps ax | grep qemu 26280 pts/2 Z+ 0:20 [qemu] <defunct>