Commit e39cc98
committed
Remove rogue exit(0) that shuts down JVM
For normal JRuby use, we let the main script finish and Main.main
exits. If non-daemon threads remain running, they will keep the
JVM alive. However a change for CRaC support accidentally
introduced a hard exit(0) that is always encountered, even if the
script did not request a hard exit using `exit` or similar Ruby
calls.
This patch removes the hard exit(0) so that "casual" exit from the
main script does not force the JVM to shut down. The runtime will
still be torn down as usual, but non-daemon threads can keep the
JVM alive after JRuby itself has exited.
Fixes jruby#84161 parent c5fb69e commit e39cc98
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
203 | | - | |
204 | 202 | | |
205 | 203 | | |
206 | 204 | | |
| |||
0 commit comments