From d6a3a8ef1e74b05302063b596ad6b883f97c5dda Mon Sep 17 00:00:00 2001 From: Ed Merks Date: Sun, 4 Feb 2024 09:02:55 +0100 Subject: [PATCH] Handle return value 24 the same was as 23. https://github.com/eclipse-equinox/p2/issues/166 --- .../src/org/eclipse/equinox/launcher/Main.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java b/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java index c47de5717a7..ae7a94dfeff 100644 --- a/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java +++ b/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java @@ -1435,10 +1435,10 @@ public static void main(String[] args) { // In case something weird happens, just dump stack - logging is not available at this point t.printStackTrace(); } finally { - // If the return code is 23, that means that Equinox requested a restart. - // In order to distinguish the request for a restart, do a System.exit(23) + // If the return code is 23 or 24, that means that Equinox requested a restart. + // In order to distinguish the request for a restart, do a System.exit(result) // no matter of 'osgi.noShutdown' runtime property value. - if (!Boolean.getBoolean(PROP_NOSHUTDOWN) || result == 23) + if (!Boolean.getBoolean(PROP_NOSHUTDOWN) || result == 23 || result == 24) // make sure we always terminate the VM System.exit(result); }