]> git.ipfire.org Git - thirdparty/glibc.git/commit
copy_and_spawn_sgid: Avoid double calls to close()
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Tue, 3 Aug 2021 15:40:53 +0000 (21:10 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Tue, 3 Aug 2021 15:40:53 +0000 (21:10 +0530)
commit45caed9d67a00af917d8b5b88d4b5eb1225b7aef
treef760c079b88c59fc1a9872ce5755d7a04cf73696
parent1e0e6d656db9dfa12ef7eb67976385d3deb0d4ff
copy_and_spawn_sgid: Avoid double calls to close()

If close() on infd and outfd succeeded, reset the fd numbers so that
we don't attempt to close them again.

Reviewed-by: Arjun Shankar <arjun@redhat.com>
support/support_capture_subprocess.c