]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
um: Use os_set_pdeathsig helper in winch thread/process
authorTiwei Bie <tiwei.btw@antgroup.com>
Thu, 24 Oct 2024 14:28:28 +0000 (22:28 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 25 Oct 2024 09:34:55 +0000 (11:34 +0200)
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>
arch/um/drivers/chan_user.c

index 1434114b2f34dd5ea6f04b548c6a604dc95965a8..35f9beeb19b3fe6761dcd4735690600403ce3e53 100644 (file)
@@ -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;