Bug 801286
| Summary: | qemu-kvm is terminated when interrupt a guestfish command | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Qixiang Wan <qwan> |
| Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> |
| Status: | CLOSED NOTABUG | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.2 | CC: | leiwang, moli, qguan |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-03-08 10:31:15 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: | |||
|
Description
Qixiang Wan
2012-03-08 07:50:57 UTC
But we're not very sure whether this is a bug. Is the qemu-kvm exactly the subprocess which should receive the SIGINT signal, and there is no subprocess for the guestfish sub-commands? Please feel free to close this if you think this is the expected result, and there is no necessary to improve the behaviour. If users set the pgroup flag to false (which they shouldn't do) then ^C is delivered to guestfish and to the subprocess (kvm), killing both. That's the reason why guestfish sets this flag to true: so that guestfish can catch ^C during long-running commands and cancel them properly. https://github.com/libguestfs/libguestfs/blob/4504f424f5589f81086f5250674b55708e162e5f/fish/fish.c#L399 |