gspawn: use close_and_invalidate more

This commit is contained in:
Michael Catanzaro 2021-12-14 13:36:24 -06:00
parent 2c07c17840
commit ac8d1aa247

View File

@ -1798,7 +1798,7 @@ do_exec (gint child_err_report_fd,
child_err_report_fd = safe_dup (child_err_report_fd);
safe_dup2 (source_fds[i], target_fds[i]);
(void) close (source_fds[i]);
close_and_invalidate (&source_fds[i]);
}
}
}