Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

um: Use os_set_pdeathsig helper in winch thread/process

Since we have a helper now, let's switch to using it. It will make
the code slightly more consistent.

Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20241024142828.2612828-5-tiwei.btw@antgroup.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Tiwei Bie and committed by
Johannes Berg
42b8b00c c6c4adee

+1 -2
+1 -2
arch/um/drivers/chan_user.c
··· 10 10 #include <signal.h> 11 11 #include <termios.h> 12 12 #include <sys/ioctl.h> 13 - #include <sys/prctl.h> 14 13 #include "chan_user.h" 15 14 #include <os.h> 16 15 #include <um_malloc.h> ··· 161 162 int count; 162 163 char c = 1; 163 164 164 - prctl(PR_SET_PDEATHSIG, SIGKILL); 165 + os_set_pdeathsig(); 165 166 166 167 pty_fd = data->pty_fd; 167 168 pipe_fd = data->pipe_fd;