INSTALL_SBIN-$(CONFIG_X86) += xen-memshare
INSTALL_SBIN-$(CONFIG_X86) += xen-mfndump
INSTALL_SBIN-$(CONFIG_X86) += xen-ucode
+INSTALL_SBIN-$(CONFIG_X86) += xen-vmtrace
INSTALL_SBIN += xencov
INSTALL_SBIN += xenhypfs
INSTALL_SBIN += xenlockprof
TARGETS_BUILD := $(filter-out $(TARGETS_COPY),$(TARGETS_ALL))
# ... including build-only targets
-TARGETS_BUILD-$(CONFIG_X86) += xen-vmtrace
TARGETS_BUILD += $(TARGETS_BUILD-y)
.PHONY: all build
static char *buf;
static sig_atomic_t interrupted;
-static void int_handler(int signum)
+static void close_handler(int signum)
{
interrupted = 1;
}
int rc, exit = 1;
xenforeignmemory_resource_handle *fres = NULL;
- if ( signal(SIGINT, int_handler) == SIG_ERR )
- err(1, "Failed to register signal handler\n");
+ struct sigaction act;
+ act.sa_handler = close_handler;
+ act.sa_flags = 0;
+ sigemptyset(&act.sa_mask);
+ sigaction(SIGHUP, &act, NULL);
+ sigaction(SIGTERM, &act, NULL);
+ sigaction(SIGINT, &act, NULL);
+ sigaction(SIGALRM, &act, NULL);
if ( argc != 3 )
{