From f9584d0417ed8d3fc72d9dcb297b1738fef2d00c Mon Sep 17 00:00:00 2001 From: Malfurious Date: Thu, 28 Sep 2023 15:40:40 -0400 Subject: setpgid is redundant with setsid and causes an error Signed-off-by: Malfurious --- misplays.c | 1 - 1 file changed, 1 deletion(-) diff --git a/misplays.c b/misplays.c index 62d89e7..da15a30 100644 --- a/misplays.c +++ b/misplays.c @@ -29,7 +29,6 @@ static pid_t dofork(char **argv, struct console *cons) { if (pid == 0) { console_configslave(cons); close_range(STDERR_FILENO+1, ~0U, CLOSE_RANGE_UNSHARE); - setpgid(0, 0); raise(SIGSTOP); // ptrace(PTRACE_TRACEME, 0, NULL, NULL); execvp(argv[0], argv); exit(EXIT_FAILURE); -- cgit v1.2.3