mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 06:34:12 +08:00
io-wq: only exit on fatal signals
If the application uses io_uring and also relies heavily on signals for communication, that can cause io-wq workers to spuriously exit just because the parent has a signal pending. Just ignore signals unless they are fatal. Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
f95dc207b9
commit
15e20db2e0
@ -575,7 +575,9 @@ loop:
|
||||
|
||||
if (!get_signal(&ksig))
|
||||
continue;
|
||||
break;
|
||||
if (fatal_signal_pending(current))
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
if (ret)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user