Prevent dangling cat-files (#17154) #17155

Open
zeripath wants to merge 7 commits from zeripath/backport-17154 into release/v1.15
Contributor

Backport #17154

In #17138 it appears that on Windows a git cat-file can fail to be killed.

This PR attempts to prevent this by:

  1. Using os.Pipes for the input - this should mean that the stdin is definitely closed.
  2. If the cat-file is doesn't close properly it will attempt to kill it repeatedly logging this.

Fix #17138

Signed-off-by: Andrew Thornton art27@cantab.net

Backport #17154 In #17138 it appears that on Windows a git cat-file can fail to be killed. This PR attempts to prevent this by: 1. Using os.Pipes for the input - this should mean that the stdin is definitely closed. 2. If the cat-file is doesn't close properly it will attempt to kill it repeatedly logging this. Fix #17138 Signed-off-by: Andrew Thornton <art27@cantab.net>
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lunny/gitea#17155
No description provided.