Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@south-mer
Copy link
Contributor

What is the problem I am trying to address?

Package download sometimes fails with error waitid: no child processes, due to a race condition described in the code snippet below:

https://github.com/slimtoolkit/slim/blob/79b63a80c10083ece51be0ef1fd1e7c090ff6346/pkg/util/errutil/errutil.go#L95-L110

A GitHub search (e.g. https://github.com/search?q=%22waitid%3A+no+child+processes%22&type=code) also shows a similar workaround in many other Go projects.

How is the fix applied?

For exec.Command().Run(), ignore the error (set the error to nil) if the error corresponds to the issue above.

What GitHub issue(s) does this PR fix or close?

(No GitHub issue yet)

@south-mer south-mer requested a review from a team as a code owner May 14, 2025 08:45
@nrwiersma nrwiersma merged commit 24895f2 into gomods:main May 14, 2025
11 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.

2 participants