-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(java): JsiiRuntime.ErrorStreamSink does not respond to being inte…
…rrupted (#2540) Use `zt-exec` to launch the `jsii-runtime` process, as it offers better semantics for IO redirection than Java's standard `ProcessBuilder` API (that it wraps). This includes ways to pipe the standard outputs (in particular, `STDERR`) though a line handler, which is *exactly* what we need to achieve in this particular case. Since we no longer manage an error stream sink thread, we can hope that this solves the issue of the thread not responding to interruptions correctly. Fixes #2533
- Loading branch information
1 parent
67cd3ce
commit 6e74bf9
Showing
2 changed files
with
88 additions
and
88 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