Skip to content

Commit

Permalink
Handle return value 24 the same as 23
Browse files Browse the repository at this point in the history
  • Loading branch information
merks committed Feb 4, 2024
1 parent 850923a commit 8c65900
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8c65900

Please sign in to comment.