diff options
author | Tiwei Bie <tiwei.btw@antgroup.com> | 2024-10-24 22:28:26 +0800 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2024-10-25 11:34:55 +0200 |
commit | 9b5e6c0f5a9199c69af81ac5bedc512ee7dc20b3 (patch) | |
tree | e3144f9af29bf738b52425a5af8734861d0d4a08 /arch/um | |
parent | 4e5adbe447db382cc76e05613581f96aef4f91d2 (diff) |
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>
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/drivers/ubd_kern.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c index 7f28ec1929dc..2b8d04e67600 100644 --- a/arch/um/drivers/ubd_kern.c +++ b/arch/um/drivers/ubd_kern.c @@ -1499,6 +1499,7 @@ int io_thread(void *arg) { int n, count, written, res; + os_set_pdeathsig(); os_fix_helper_signals(); while(1){ |