From 0745c15d7b953312bdc2f5c3d82a1ad98d342563 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sat, 18 Apr 2020 15:31:46 -0500 Subject: [PATCH] Fix return value from shell.c --- src/mainclient/shell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mainclient/shell.c b/src/mainclient/shell.c index 6b443c02..ecb7534e 100644 --- a/src/mainclient/shell.c +++ b/src/mainclient/shell.c @@ -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