diff options
author | Tiwei Bie <tiwei.btw@antgroup.com> | 2024-10-24 22:28:27 +0800 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2024-10-25 11:34:55 +0200 |
commit | c6c4adee65969218b0b7b13f568fd2c6f2333373 (patch) | |
tree | 616ed41c0b612c15dde44d763d4558712ca64448 /arch/um | |
parent | 9b5e6c0f5a9199c69af81ac5bedc512ee7dc20b3 (diff) |
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 <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20241024142828.2612828-4-tiwei.btw@antgroup.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/os-Linux/sigio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/um/os-Linux/sigio.c b/arch/um/os-Linux/sigio.c index 9e71794839e8..9aac8def4d63 100644 --- a/arch/um/os-Linux/sigio.c +++ b/arch/um/os-Linux/sigio.c @@ -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 = ¤t_poll; while (1) { |