From 6f831c4f9562a42d45314f39565e3af15f3bd1b7 Mon Sep 17 00:00:00 2001 From: Joe Groff Date: Wed, 19 Oct 2011 18:55:31 -0700 Subject: [PATCH] vm: block all signals from unix stdin_loop thread --- vm/os-unix.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vm/os-unix.cpp b/vm/os-unix.cpp index a0963a9385..90ce67e0d0 100755 --- a/vm/os-unix.cpp +++ b/vm/os-unix.cpp @@ -330,6 +330,10 @@ void *stdin_loop(void *arg) unsigned char buf[4096]; bool loop_running = true; + sigset_t mask; + sigfillset(&mask); + pthread_sigmask(SIG_BLOCK, &mask, NULL); + while(loop_running) { if(!safe_read(control_read,buf,1))