orderlyShutdown question

Thomas Leonard <tal-v5nx5w6akNyLE8xUarVfuPLx9OUvmyODWmv/[email protected]>
Newsgroups gmane.comp.lang.e.general
Organization IT Innovation
Message-ID <[email protected]>
I'm having a bit of trouble with shutting down vats. Here's some test
code:

def makeVat := <unsafe:org.erights.e.elib.vat.makeVat>
def seedVat := <elang:interp.seedVatAuthor>(<unsafe>)

def test() {
	def [_, vat] := seedVat("5")
	println(`created vat $vat`)
	println(`shutting down vat $vat`)
	def result := vat<-orderlyShutdown("reason")

	return when (result) -> {
		println(`shutdown complete: $result`)
		test()
	}
}

test()

interp.blockAtTop()


The problem seems to be that once the vat is shut down, it doesn't
respond to __whenMoreResolved, so the caller is never notified.

The problem is returned by DeadRunner.enqueue, but
HeadlessRunner.redirect silently discards it.



-- 
Dr Thomas Leonard
IT Innovation Centre
2 Venture Road
Southampton
Hampshire SO16 7NP

Tel: +44 0 23 8076 0834
Fax: +44 0 23 8076 0833
mailto:tal-v5nx5w6akNyLE8xUarVfuPLx9OUvmyODWmv/[email protected]
http://www.it-innovation.soton.ac.uk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.