-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
runtime/exitcodes: Set exit code according to the SystemExit exception. #15863
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
base: master
Are you sure you want to change the base?
Conversation
@dpgeorge can you please have a look? It is the same code as last time. Can we merge it already? Is there something that blocks it, that I should change? This drags along for half a year or so already... |
Check commit message fails because of some other commit in the history not being signed off. This commit is OK and signed off |
Code size report:
|
@dpgeorge, what do you think about this PR? |
@dpgeorge Hi, do you think you could find some time to review this case? Thank you |
13cccd3
to
07a0994
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #15863 +/- ##
=======================================
Coverage 98.57% 98.57%
=======================================
Files 169 169
Lines 21968 21968
=======================================
Hits 21654 21654
Misses 314 314 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: John Smith <[email protected]>
07a0994
to
36f9a35
Compare
Summary
Add abort setup code (nlr_set_abort) to standard runtime. This makes the standard runtime respond to abort signal without any further modifications.
This PR continues previous PRs, originally at #14419 and later #15392 and #15730
Testing
Tested on ESP32, should work in other places. The changes are guarded by
#if
abort is enabled in the runtime -> only people who want the abort functionality will get this change.Trade-offs and Alternatives
This code may return non-zero exit code in scenarios where previous version did return zero exit code. The exit codes are configurable and the defaults are zero, so not to introduce any breaking changes.