]> git.proxmox.com Git - mirror_qemu.git/blobdiff - vl.c
Introduce os-posix.c and create os_setup_signal_handling()
[mirror_qemu.git] / vl.c
diff --git a/vl.c b/vl.c
index 3bbfd22a5be4e999968a9e01627f66d76a051450..5640d35a4b1527398edd08020353cf3cd78196e7 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -2460,13 +2460,7 @@ int main(int argc, char **argv, char **envp)
 
     QLIST_INIT (&vm_change_state_head);
 #ifndef _WIN32
-    {
-        struct sigaction act;
-        sigfillset(&act.sa_mask);
-        act.sa_flags = 0;
-        act.sa_handler = SIG_IGN;
-        sigaction(SIGPIPE, &act, NULL);
-    }
+    os_setup_signal_handling();
 #else
     SetConsoleCtrlHandler(qemu_ctrl_handler, TRUE);
     /* Note: cpu_interrupt() is currently not SMP safe, so we force