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

Exiting leiningen with Ctrl-C leaves an orphaned java process on cygwin/windows #1614

Open
jtcbrule opened this issue Jul 30, 2014 · 3 comments
Labels

Comments

@jtcbrule
Copy link

With Leiningen 2.4.2 (Java 1.8.0_05 64-bit), from a cygwin shell, executing "$ lein repl" spawns a new bash process, a bash subprocess, and two java subprocesses.

bash.exe (original)
bash.exe (new)
- bash.exe
- - java.exe
- - - java.exe

(The last java subprocess is only spawned when invoking "$ lein repl" from inside a project directory; "$ lein repl" from, say, my home directory only creates the single java subprocess.)

(exit) or Ctrl-D kills the entire tower of subprocess, but Ctrl-C leaves the last java process orphaned.

This usually isn't an issue, since I normally quit with Ctrl-D or (exit), but if I'm forced to quit with Ctrl-C (e.g. infinite loop, or certain lein plugins like gorilla), then I have to manually track down and kill the Java process.

@mpdehaan
Copy link

I'm actually seeing similar behavior to this on 2.5.1 lein on Ubuntu 14.04, default shell, etc. Can't figure out why. True even after exiting the repl with "exit" and getting the usual "bye" message.

@hypirion
Copy link
Collaborator

hypirion commented Nov 3, 2015

This may be related to #1854.

@ysl208
Copy link

ysl208 commented Sep 30, 2020

@mpdehaan I'm experiencing the same behaviour on Ubuntu 20.04 and 18.04, Leiningen 2.9.1 on Java 11.0.8.
Any workaround ?

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

No branches or pull requests

5 participants