It would be useful if you include this addition to qemu code. I often use Windows on virtual qemu machines and I think that there is no more elegant way to shut them down (any other OS too!), than by killing qemu with signal it does not use for other purposes. // termsig_handler() is not consistent with other _handler names, // it would look better as sigterm_handler() -- Jan Psota