mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-01 10:42:11 +00:00
um: Set parent-death signal for ubd io thread/process
The ubd io thread is not really a traditional thread. Set the parent-death signal for it to ensure that it will be killed if the UML kernel dies unexpectedly without proper cleanup. Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com> Link: https://patch.msgid.link/20241024142828.2612828-3-tiwei.btw@antgroup.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
4e5adbe447
commit
9b5e6c0f5a
@ -1499,6 +1499,7 @@ int io_thread(void *arg)
|
|||||||
{
|
{
|
||||||
int n, count, written, res;
|
int n, count, written, res;
|
||||||
|
|
||||||
|
os_set_pdeathsig();
|
||||||
os_fix_helper_signals();
|
os_fix_helper_signals();
|
||||||
|
|
||||||
while(1){
|
while(1){
|
||||||
|
Loading…
Reference in New Issue
Block a user