Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle return value 24 the same was as 23. #498

Closed
wants to merge 1 commit into from

Conversation

merks
Copy link
Contributor

@merks merks commented Feb 4, 2024

@merks
Copy link
Contributor Author

merks commented Feb 4, 2024

@umairsair

I'm not sure how to test if this is needed but it wold seem consistent with the exiting handling for 23.

@laeubi
Copy link
Member

laeubi commented Feb 4, 2024

I just wanted to link this one here regarding exit codes it sometimes comes to a surprise:

Copy link

github-actions bot commented Feb 4, 2024

Test Results

   27 files  +   25     27 suites  +25   11m 38s ⏱️ + 11m 27s
2 170 tests +2 156  2 124 ✅ +2 110  46 💤 +46  0 ❌ ±0 
2 228 runs  +2 200  2 182 ✅ +2 154  46 💤 +46  0 ❌ ±0 

Results for commit 8c65900. ± Comparison against base commit 850923a.

@merks
Copy link
Contributor Author

merks commented Feb 4, 2024

This code has not been touched in a very long time so I doubt there is any one around who can tell us what's right or wrong. I think consistently handing 24 as we do 23 is most likely the correct and consistent thing to do and it's what I've done elsewhere to fix actual problems, e.g.,

eclipse-pde/eclipse.pde#1121

@HannesWell
Copy link
Member

I wonder if there should be some global constants for that magic numbers?

@laeubi
Copy link
Member

laeubi commented Feb 4, 2024

I wonder if there should be some global constants for that magic numbers?

You mean like

public static final Integer EXIT_RELAUNCH = Integer.valueOf(24);

public static final Integer EXIT_RESTART = Integer.valueOf(23);

:-)

In the end a real relaunch can only performed by a native launcher ...

@HannesWell
Copy link
Member

I wonder if there should be some global constants for that magic numbers?

You mean like

For example, yes. :)
I think it would be good to use that where possible, i.e. platform and PDE. Here it is probably not accessible.

@merks
Copy link
Contributor Author

merks commented Feb 4, 2024

I cancel this because eclipse-platform/eclipse.platform.ui#1622 avoids surfacing that exit code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants