diff --git a/linux-user/syscall.c b/linux-user/syscall.c index aa5517c84990c73cbfa79aa8155145ff07b89f95..f3061a9567c16ba81eccb2be0bcd71b055fbdbbf 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -6640,8 +6640,12 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, However in threaded applictions it is used for thread termination, and _exit_group is used for application termination. Do thread termination if we have more then one thread. */ - /* FIXME: This probably breaks if a signal arrives. We should probably - be disabling signals. */ + + if (block_signals()) { + ret = -TARGET_ERESTARTSYS; + break; + } + if (CPU_NEXT(first_cpu)) { TaskState *ts;