Skip to content

Commit c6c4ade

Browse files
btw616jmberg-intel
authored andcommitted
um: Set parent-death signal for write_sigio thread/process
The write_sigio 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 9b5e6c0 commit c6c4ade

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/um/os-Linux/sigio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ static int write_sigio_thread(void *unused)
5555
int i, n, respond_fd;
5656
char c;
5757

58+
os_set_pdeathsig();
5859
os_fix_helper_signals();
5960
fds = &current_poll;
6061
while (1) {

0 commit comments

Comments
 (0)