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

fix(lookup-git-tag): prevent SIGPIPE issue #99

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Conversation

jdassonvil
Copy link
Contributor

@jdassonvil jdassonvil commented Jun 5, 2024

There is a concurrency issue in git tag -l which leads to the pipe still being written when readers are done.
The issue seems to arise as the tag list is getting big enough.
Looking at "the internet" this issue seems related to the internal use of grep by git: https://stackoverflow.com/questions/19120263/why-exit-code-141-with-grep-q

This fix ensures that the git tag -l command has finished before piping the result to the next commands.

See also https://tldp.org/LDP/lpg/node20.html

@jdassonvil jdassonvil requested a review from a team June 5, 2024 12:40
@jdassonvil jdassonvil force-pushed the jerome/fix-sigpipe branch from 79844d2 to b7fda4e Compare June 5, 2024 13:14
@jdassonvil jdassonvil merged commit c1e24fe into master Jun 5, 2024
1 check passed
@jdassonvil jdassonvil deleted the jerome/fix-sigpipe branch June 5, 2024 13:15
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.

3 participants