Allow (exit) to return integer values to OS

This commit is contained in:
Justin Ethier 2019-04-11 13:21:31 -04:00
parent 74c545416c
commit 7bc59f3ded

View file

@ -3122,6 +3122,10 @@ void Cyc_halt(object obj)
#if DEBUG_SHOW_DIAG
gc_print_stats(Cyc_heap);
#endif
if (obj_is_int(obj)) {
exit(obj_obj2int(obj));
}
exit(0);
}