Support (quit-dataspace) at ground level

This commit is contained in:
Tony Garnock-Jones 2016-07-10 20:14:54 -04:00
parent 3f3249e7a1
commit b323d7c650
2 changed files with 5 additions and 0 deletions

View File

@ -90,6 +90,8 @@
[(cons e rest)
(let ((b (struct-copy bb b [inbound rest])))
(interpret-actions b (deliver b e) #t))])]
[(<quit> _ _)
(struct-copy bb b [halted? #t])]
[(transition new-dataspace actions)
(let process-actions ((b (struct-copy bb b [dataspace new-dataspace])) (actions actions))
(match actions

View File

@ -93,6 +93,9 @@
(match resulting-transition
[#f ;; inert
(await-interrupt #t w interests)]
[(<quit> _ _)
(log-info "run-ground: Terminating by request")
(void)]
[(transition w actions)
(let process-actions ((actions actions) (interests interests))
(match actions