aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2012-04-09 23:37:41 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2012-04-09 23:37:41 -0400
commit2524addb93259ea6490fe2f1ef156d059f327d2a (patch)
treef571116bbdaa5844bfdc395435100f4860a0c107
parent84c2daa1c4a314869f87718f642df4b21b4b03b9 (diff)
downloadkvm-manager-2524addb93259ea6490fe2f1ef156d059f327d2a.tar.gz
kvm-manager-2524addb93259ea6490fe2f1ef156d059f327d2a.tar.bz2
sending a QUIT signal to the container process should send a TERM signal directly to the kvm guest
-rwxr-xr-xkvm-manager1
1 files changed, 1 insertions, 0 deletions
diff --git a/kvm-manager b/kvm-manager
index ca01864..4dcac71 100755
--- a/kvm-manager
+++ b/kvm-manager
@@ -104,6 +104,7 @@ EOF
trap 'kvmsend system_reset; wait %1' HUP
trap 'kvmsend system_powerdown; wait %1' TERM
trap 'kvmsend cont; wait %1' CONT
+ trap 'kill -s TERM %1' QUIT
# use SIGINT instead of SIGSTOP for freezing the guest because
# trapping SIGSTOP is undefined:
# http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_28