Convey the number of remaining processes after a termination

This commit is contained in:
Tony Garnock-Jones 2014-05-21 23:17:25 -04:00
parent bad652d0c5
commit aea07d16cc
1 changed files with 3 additions and 1 deletions

View File

@ -246,7 +246,9 @@
(define p (hash-ref pt pid (lambda () #f)))
(if p
(let* ((w (struct-copy world w [process-table (hash-remove pt pid)])))
(log-info "Process ~a terminating" pid)
(log-info "Process ~a terminating; ~a processes remain"
pid
(hash-count (world-process-table w)))
(apply-and-issue-routing-update w pid (process-gestalt p) (gestalt-empty)))
(transition w '()))]
[(routing-update gestalt)