summaryrefslogtreecommitdiff
path: root/arch/um
diff options
context:
space:
mode:
authorTiwei Bie <tiwei.btw@antgroup.com>2024-10-24 22:28:28 +0800
committerJohannes Berg <johannes.berg@intel.com>2024-10-25 11:34:55 +0200
commit42b8b00c8ab1ac18fccde3f29ee589626a561ea7 (patch)
treee69fe8d2ad4511c021b759ce1e64126db88a6ff8 /arch/um
parentc6c4adee65969218b0b7b13f568fd2c6f2333373 (diff)
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>
Diffstat (limited to 'arch/um')
-rw-r--r--arch/um/drivers/chan_user.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/um/drivers/chan_user.c b/arch/um/drivers/chan_user.c
index 1434114b2f34..35f9beeb19b3 100644
--- a/arch/um/drivers/chan_user.c
+++ b/arch/um/drivers/chan_user.c
@@ -10,7 +10,6 @@
#include <signal.h>
#include <termios.h>
#include <sys/ioctl.h>
-#include <sys/prctl.h>
#include "chan_user.h"
#include <os.h>
#include <um_malloc.h>
@@ -162,7 +161,7 @@ static __noreturn int winch_thread(void *arg)
int count;
char c = 1;
- prctl(PR_SET_PDEATHSIG, SIGKILL);
+ os_set_pdeathsig();
pty_fd = data->pty_fd;
pipe_fd = data->pipe_fd;