xref: /kvmtool/builtin-pause.c (revision 2947270eaa8b09f101c3c4561d276d580d19f8c0)
1 #include <stdio.h>
2 #include <string.h>
3 #include <signal.h>
4 
5 #include <kvm/util.h>
6 #include <kvm/kvm-cmd.h>
7 #include <kvm/kvm-pause.h>
8 
9 int kvm_cmd_pause(int argc, const char **argv, const char *prefix)
10 {
11 	signal(SIGUSR2, SIG_IGN);
12 	return system("kill -USR2 $(pidof kvm)");
13 }
14