mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 13:49:17 +02:00
returning the result of the root thread when it terminates before the child
This commit is contained in:
parent
2154f78b13
commit
ff74a8928f
1 changed files with 1 additions and 1 deletions
2
vm.c
2
vm.c
|
@ -2101,7 +2101,7 @@ sexp sexp_apply (sexp ctx, sexp proc, sexp args) {
|
|||
if (ctx != root_thread) {
|
||||
if (sexp_context_refuel(root_thread) <= 0) {
|
||||
/* the root already terminated */
|
||||
_ARG1 = SEXP_VOID;
|
||||
_ARG1 = sexp_context_result(root_thread);
|
||||
} else {
|
||||
/* don't return from child threads */
|
||||
if (sexp_exceptionp(_ARG1)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue