Skip to content

Commit 9b5e6c0

Browse files
btw616jmberg-intel
authored andcommitted
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Johannes Berg <[email protected]>
1 parent 4e5adbe commit 9b5e6c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/um/drivers/ubd_kern.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,6 +1499,7 @@ int io_thread(void *arg)
14991499
{
15001500
int n, count, written, res;
15011501

1502+
os_set_pdeathsig();
15021503
os_fix_helper_signals();
15031504

15041505
while(1){

0 commit comments

Comments
 (0)