Skip to content
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

Open
samsieber opened this issue May 19, 2017 · 3 comments
Open

Comments

@samsieber
Copy link

samsieber commented May 19, 2017

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

@samsieber
Copy link
Author

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
@nhoughto
Copy link

Just use this instead

https://github.com/psxpaul/gradle-execfork-plugin

@samsieber
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants