Skip to content

process: don't try to close the status #6693

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 18, 2023
Merged

process: don't try to close the status #6693

merged 1 commit into from
Dec 18, 2023

Conversation

ethomson
Copy link
Member

process->status is a status value; we were mistakenly trying to close it as a file descriptor, as if it were the status self-pipe that we open during process creation.

Instead, don't try to close it, as it's not a file descriptor.

Fixes #6686

`process->status` is a status value; we were mistakenly trying to close
it as a file descriptor, as if it were the `status` self-pipe that we open
during process creation.

Instead, don't try to close it, as it's not a file descriptor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

libgit2 tries to close an invalid file descriptor when using OpenSSH
1 participant