forked from emezeske/lein-cljsbuild
-
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.
Fix emezeske#453: use ProcessBuilder for output redirect
Pull request emezeske#436 removes the call to exit that was added to address emezeske#171. This caused a regression in testing and notify behaviour that was reported as emezeske#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
Stephen Nelson
committed
Apr 13, 2017
1 parent
4bbb6a1
commit 935a960
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