Skip to content
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

master update for release. #379

Merged
merged 18 commits into from
Jul 2, 2024
Merged

master update for release. #379

merged 18 commits into from
Jul 2, 2024

Conversation

klemens-morgenstern
Copy link
Collaborator

No description provided.

zhixingchen and others added 18 commits May 11, 2024 11:26
On FreeBSD I would like to remove dependency on libprocstat completely, and replace it with libkvm to be more like the other *BSD platforms in terms of linker dependencies. This pull request is our first move in that direction.

Replace libprocstat with libkvm in cmd
_pipe_sink was assigned after call_on_setup(), after limit_fd_::on_setup(),
but this was too late. It must be assigned earlier so that
executor::get_used_handles() can see it and prevent limit_handles from
closing the internal pipe for passing exec() errors from child to parent.

Fixes: 1a1d677
Closes: #202
Signed-off-by: Daniel Klauer <[email protected]>
This re-adds the close(source) call which already existed here before
commit caa7b2f. pipe_out already closes the source fd when redirecting
stdout or stderr, it was just missing when redirecting both at once.

The pipe fds must be closed after redirecting to avoid keeping the pipe
open unnecessarily, for example the parent may want to close their end of
the pipe.

Closes: #353
Signed-off-by: Daniel Klauer <[email protected]>
@klemens-morgenstern klemens-morgenstern merged commit c2da58e into master Jul 2, 2024
18 of 48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants