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

exec: Stdout already set #315

Open
jgbooks opened this issue Jul 22, 2024 · 0 comments
Open

exec: Stdout already set #315

jgbooks opened this issue Jul 22, 2024 · 0 comments

Comments

@jgbooks
Copy link

jgbooks commented Jul 22, 2024

type CmdRunner struct {
	logger hclog.Logger
	cmd    *exec.Cmd

	stdout io.ReadCloser
	stderr io.ReadCloser

	// Cmd info is persisted early, since the process information will be removed
	// after Kill is called.
	path string
	pid  int

	addrTranslator
}

When executing the kill command to terminate a child process, I found that the runner did not close the stdout and stderr.

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

No branches or pull requests

1 participant