Instead, if we get a terminating signal, just die. This means that
xend can kill us. Unlike upstream qemu, we are not at risk from being
sent random console signals as an attempt to cleanly terminate the
domain.
Thanks to report from Dexuan Cui <dexuan.cui@intel.com>.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
struct sigaction act;
memset(&act, 0, sizeof(act));
+#ifndef CONFIG_DM
act.sa_handler = termsig_handler;
+#else
+ act.sa_handler = SIG_DFL;
+#endif
sigaction(SIGINT, &act, NULL);
sigaction(SIGHUP, &act, NULL);
sigaction(SIGTERM, &act, NULL);