diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 01:11:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 01:11:50 +0000 |
commit | 054d2bd549b979947565f10890bf2d2b4a6feba2 (patch) | |
tree | ec06707546c523d3ca43b34503af94c99e704b65 /src/background.c | |
parent | Adding debian version 3:4.8.30-1. (diff) | |
download | mc-054d2bd549b979947565f10890bf2d2b4a6feba2.tar.xz mc-054d2bd549b979947565f10890bf2d2b4a6feba2.zip |
Merging upstream version 3:4.8.31.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/background.c')
-rw-r--r-- | src/background.c | 7 |
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; |