mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2024-12-29 09:13:38 +00:00
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>
This commit is contained in:
parent
c6c4adee65
commit
42b8b00c8a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user