Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

Don't reuse exec.Cmd #42

Merged
merged 1 commit into from
May 18, 2021
Merged

Don't reuse exec.Cmd #42

merged 1 commit into from
May 18, 2021

Conversation

pmalek-sumo
Copy link
Contributor

exec.Cmd cannot be reuse so create it on every loop iteration.

This may cause errors like e.g. exec: Stdout already set.

Related issue on golang/go which added the above comment on the struct: golang/go#10305

@pmalek-sumo pmalek-sumo requested review from a team May 18, 2021 08:51
@jpkrohling jpkrohling merged commit d8500e6 into open-telemetry:main May 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants