-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #453: use ProcessBuilder for output redirect
Pull request #436 removes the call to exit that was added to address #171. This caused a regression in testing and notify behaviour that was reported as #453, where subprocesses would hang for 30 seconds after the subprocess completed. This commit avoids the need for pump threads to copy data from subprocess streams by using ProcessBuilder's existing Redirect functionality to either write redirect stream output to files directly, or to inherit System.out and System.err from the main process. This means that `lein test` etc now terminate in a reasonable time again, and avoids the call to `exit` that was causing problems for trampoline tasks.
- Loading branch information
Showing
2 changed files
with
7 additions
and
40 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
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