From d187dfc3c81d987ef851b3806fc0ba372c8a3348 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Sat, 4 May 2024 21:57:31 -0400 Subject: Remove call to close_range() during process fork I don't think this is strictly necessary, just seemed like a good idea. However, this function doesn't seem to be available on my test ARM system, so it is removed for compatibility. Signed-off-by: Malfurious --- misplays.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misplays.c b/misplays.c index 08627d9..70fe45b 100644 --- a/misplays.c +++ b/misplays.c @@ -29,7 +29,7 @@ static pid_t dofork(char **argv, struct console *cons) { if (pid == 0) { usleep(10000); console_configslave(cons); - close_range(STDERR_FILENO+1, ~0U, CLOSE_RANGE_UNSHARE); + //close_range(STDERR_FILENO+1, ~0U, CLOSE_RANGE_UNSHARE); //raise(SIGSTOP); // ptrace(PTRACE_TRACEME, 0, NULL, NULL); execvp(argv[0], argv); exit(EXIT_FAILURE); -- cgit v1.2.3