Flush debug outputs

This commit is contained in:
Tony Garnock-Jones 2012-05-09 16:24:24 -04:00
parent 4f63b36c9d
commit 3ec9abad45
1 changed files with 3 additions and 1 deletions

View File

@ -445,6 +445,7 @@
[processes (hash-set (vm-processes state) new-pid initial-process)]
[next-process-id (+ new-pid 1)]))
(printf "~a PID ~v (~a) started~n" (vm-name state) new-pid new-name)
(flush-output (current-output-port))
(run-trapk spawned-state spawning-pid k new-pid))
(define (print-kill vm-name pid-to-kill process-name reason)
@ -464,7 +465,8 @@
vm-name
pid-to-kill
process-name
reason)]))
reason)])
(flush-output (current-output-port)))
(define (do-kill pid-to-kill reason state)
(cond