summaryrefslogtreecommitdiffstats
path: root/src/background.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/background.c')
-rw-r--r--src/background.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/background.c b/src/background.c
index 41a7f40..74c449e 100644
--- a/src/background.c
+++ b/src/background.c
@@ -2,7 +2,7 @@
/* Background support.
- Copyright (C) 1996-2023
+ Copyright (C) 1996-2024
Free Software Foundation, Inc.
Written by:
@@ -553,7 +553,10 @@ do_background (file_op_context_t * ctx, char *info)
{
int nullfd;
+ (void) close (comm[0]);
parent_fd = comm[1];
+
+ (void) close (back_comm[1]);
from_parent_fd = back_comm[0];
mc_global.we_are_background = TRUE;
@@ -580,6 +583,8 @@ do_background (file_op_context_t * ctx, char *info)
}
else
{
+ (void) close (comm[1]);
+ (void) close (back_comm[0]);
ctx->pid = pid;
register_task_running (ctx, pid, comm[0], back_comm[1], info);
return 1;