pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/jruby/jruby/commit/e39cc9809baedd1a663af316a0634dd35e0a6da0

s" /> Remove rogue exit(0) that shuts down JVM · jruby/jruby@e39cc98 · GitHub
Skip to content

Commit e39cc98

Browse files
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 #8416
1 parent c5fb69e commit e39cc98

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

core/src/main/java/org/jruby/Main.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,6 @@ public static void main(String[] args) {
199199
if (status.isExit()) {
200200
System.exit(status.getStatus());
201201
}
202-
203-
System.exit(0);
204202
}
205203
catch (RaiseException ex) {
206204
System.exit( handleRaiseException(ex) );

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy