summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2023-09-28 15:40:40 -0400
committerMalfurious <m@lfurio.us>2024-04-24 13:31:08 -0400
commitf9584d0417ed8d3fc72d9dcb297b1738fef2d00c (patch)
tree9f87d23fc2c290b3fc62f820f626ccc68cf6fd6f
parent888c7ed10d7d82079c7266f4899c1c6f0c805832 (diff)
downloadmisplays-f9584d0417ed8d3fc72d9dcb297b1738fef2d00c.tar.gz
misplays-f9584d0417ed8d3fc72d9dcb297b1738fef2d00c.zip
setpgid is redundant with setsid and causes an error
Signed-off-by: Malfurious <m@lfurio.us>
-rw-r--r--misplays.c1
1 files changed, 0 insertions, 1 deletions
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);