Skip to content

Commit 42b8b00

Browse files
btw616jmberg-intel
authored andcommitted
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Johannes Berg <[email protected]>
1 parent c6c4ade commit 42b8b00

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/um/drivers/chan_user.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include <signal.h>
1111
#include <termios.h>
1212
#include <sys/ioctl.h>
13-
#include <sys/prctl.h>
1413
#include "chan_user.h"
1514
#include <os.h>
1615
#include <um_malloc.h>
@@ -162,7 +161,7 @@ static __noreturn int winch_thread(void *arg)
162161
int count;
163162
char c = 1;
164163

165-
prctl(PR_SET_PDEATHSIG, SIGKILL);
164+
os_set_pdeathsig();
166165

167166
pty_fd = data->pty_fd;
168167
pipe_fd = data->pipe_fd;

0 commit comments

Comments
 (0)