Fork me on GitHub
#jvm
<
2016-05-18
>
richiardiandrea22:05:56

Hello channel, is there a particular way to keep a JVM from shutting down? I am intentionally spawning a not-daemon thread in order to achieve that, but it looks like it always does shut

richiardiandrea22:05:43

I am willing to sacrifice a Thread but to keep the main thread free, but JVM does not collaborate

richiardiandrea23:05:40

solved, the main thread was exiting before the "waiting" thread was spawned

richiardiandrea23:05:22

by putting a Thread/sleep I was able to wait for the spawning true to be running