mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
Introduce os-posix.c and create os_setup_signal_handling()
Introcuce os-posix.c and move posix specific signal handling there. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Acked-by: Juan Quintela <quintela@redhat.com> Acked-by: Richard Henderson <rth@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
0d93ca7c3b
commit
86b645e753
4 changed files with 45 additions and 7 deletions
8
vl.c
8
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue