Skip to contentSkip to conversation

qemu-system return value when terminating due to a signal

Qemu-devel Michael Tokarev 1 participant 1 message Mar 10, 2015

lore
Share & tools
lore
#0 lore raw

When qemu is terminated by a signal, such as SIGINT (Ctrl+C), it exits with a zero, successful status. Is it intentional?

Sure, from the qemu perspective, pulling the plug from the guest machine is a success. But maybe it's better to indicate that the exit was due to interrupt, not because of `exit' command which is a much better version of pulling the plug?

If yes, what exit code should it return?

Thanks,

/mjt