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

Don't crash system if nro has non-zero exit code #90

Open
leo60228 opened this issue Aug 29, 2019 · 1 comment
Open

Don't crash system if nro has non-zero exit code #90

leo60228 opened this issue Aug 29, 2019 · 1 comment

Comments

@leo60228
Copy link

I'm not sure if this is possible, but it'd be nice for this code to not reboot the system when run with twib run -qa:

#include <stdlib.h>
#include <stdio.h>

int do_it() {
    return -1; // oops!
}

int main() {
    int error = do_it();
    if (error != 0) {
        eprintf("Couldn't do_it!\n");
        exit(1);
    }
    return 0;
}
@misson20000
Copy link
Owner

Can you send me an NRO to try to reproduce this with?

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

No branches or pull requests

2 participants