mirror of
https://github.com/janet-lang/janet
synced 2024-12-26 16:30:26 +00:00
Fix return value from shell.c
This commit is contained in:
parent
2904c19ed9
commit
0745c15d7b
@ -1011,11 +1011,12 @@ int main(int argc, char **argv) {
|
||||
JanetFiber *fiber = janet_fiber(janet_unwrap_function(mainfun), 64, 1, mainargs);
|
||||
fiber->env = env;
|
||||
status = janet_continue(fiber, janet_wrap_nil(), &out);
|
||||
if (status != JANET_SIGNAL_OK && status < JANET_SIGNAL_USER0) {
|
||||
if (status != JANET_SIGNAL_OK && status != JANET_SIGNAL_EVENT) {
|
||||
janet_stacktrace(fiber, out);
|
||||
}
|
||||
|
||||
#ifdef JANET_NET
|
||||
status = JANET_SIGNAL_OK;
|
||||
janet_loop();
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user