vm: block all signals from unix stdin_loop thread

db4
Joe Groff 2011-10-19 18:55:31 -07:00
parent 9865417149
commit 552711e903
1 changed files with 4 additions and 0 deletions

View File

@ -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))