-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Background Process Hangs When There's Too Much Unprocessed Output #30
Comments
On further investigation, we might be able to use nohup to work around this on *nix platforms (and BSD, like OS X). I'll submit a merge request if I can figure this out. |
samsieber
pushed a commit
to samsieber/gradle-spawn-plugin
that referenced
this issue
May 19, 2017
…es that deadlock bg process
Just use this instead |
If you don't need the process to run after gradle exits and of you don't need to wait for output, then yes, that other plugin seems like an option. |
gorky
pushed a commit
to gorky/gradle-spawn-plugin
that referenced
this issue
Oct 18, 2017
Fixes the following: marc0der#30 https://www.securecoding.cert.org/confluence/display/java/FIO07-J.+Do+not+let+external+processes+block+on+IO+buffers Adds timeout for TaskSpawning.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I startup a java server in the background with this (a tomcat instance preloaded with a war in this instance), and it hangs after a bit, deadlocking on a System.out.println statement.
After doing some digging, I found the explanation here: http://stackoverflow.com/questions/2783190/java-hangs-when-trying-to-close-a-processbuilder-outputstream
So... basically it renders this useless for me since I can't successfully start long running apps.
Platform: Linux, OS X
The text was updated successfully, but these errors were encountered: