-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes an issue with late close of file handles.
Although in the command running loop we defer'd the close of stdout, so we technically were safe, because that was in a loop the defer wasn't closed until a lot later than necessary, and on large batches can cause ulimit to be exceeded. This fix moves the command exection to its own function which fixes the late defer, and also makes the code more easy to read.
- Loading branch information
Showing
1 changed file
with
60 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters