Commit c6c4adee authored by Tiwei Bie's avatar Tiwei Bie Committed by Johannes Berg
Browse files

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: default avatarTiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20241024142828.2612828-4-tiwei.btw@antgroup.com


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 9b5e6c0f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -55,6 +55,7 @@ static int write_sigio_thread(void *unused)
	int i, n, respond_fd;
	char c;

	os_set_pdeathsig();
	os_fix_helper_signals();
	fds = &current_poll;
	while (1) {