summaryrefslogtreecommitdiffstats
path: root/misplays.c
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2024-05-04 21:57:31 -0400
committerMalfurious <m@lfurio.us>2024-05-08 05:57:59 -0400
commitd187dfc3c81d987ef851b3806fc0ba372c8a3348 (patch)
tree55484cb380ea740a3f25b901bc9df08fa0f628d6 /misplays.c
parentadfd44390beb37d3c5e9358b7c81f824f5b00eb2 (diff)
downloadmisplays-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>
Diffstat (limited to 'misplays.c')
-rw-r--r--misplays.c2
1 files changed, 1 insertions, 1 deletions
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);