diff options
author | Malfurious <m@lfurio.us> | 2024-05-04 21:57:31 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2024-05-08 05:57:59 -0400 |
commit | d187dfc3c81d987ef851b3806fc0ba372c8a3348 (patch) | |
tree | 55484cb380ea740a3f25b901bc9df08fa0f628d6 | |
parent | adfd44390beb37d3c5e9358b7c81f824f5b00eb2 (diff) | |
download | misplays-d187dfc3c81d987ef851b3806fc0ba372c8a3348.tar.gz misplays-d187dfc3c81d987ef851b3806fc0ba372c8a3348.zip |
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 <m@lfurio.us>
-rw-r--r-- | misplays.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |