Skip to contentSkip to conversation

Trapping ctrl-c

Qemu-devel Martin Garton 2 participants 3 messages Jul 7, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

Now that ACPI is supported, does anyone agree that it would make sense to trap SIGINT (any perhaps SIGTERM) and use it to generate an acpi power button event? That way, operating systems that support it could shut down cleanly.

This would be particularly useful when you have multiple qemu instances running with the vnc option and would mean the user does not have to use vnc multiple times to shut down but instead could just do "killall qemu"

Signature · 1 line
Martin.
#1 lore raw

It's a nice idea, but awfully *nix specific. ;0)

Quoted 22 lines · Martin Garton

Hi,

Now that ACPI is supported, does anyone agree that it would make sense to trap SIGINT (any perhaps SIGTERM) and use it to generate an acpi power button event? That way, operating systems that support it could shut down cleanly.

This would be particularly useful when you have multiple qemu instances running with the vnc option and would mean the user does not have to use vnc multiple times to shut down but instead could just do "killall qemu"

--
Martin.

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Signature · 1 line
<GedMurphy> why does the size matter?
#2 lore raw
Quoted 1 line · WaxDragon

It's a nice idea, but awfully *nix specific. ;0)

True, but it could be supplemented by the same idea when a user presses the close button on the gui window. That could work on all versions.

Signature · 1 line
Martin.