[POLL] Process>>terminate
Lukas Renggli
renggli at gmail.com
Mon Oct 15 10:08:47 UTC 2007
> And the poll question is: how many of you thought that #terminate is
> 'hard' terminate, not 'soft'. :)
I do expect that #ensure: blocks are evaluated, but ...
There are many more gotchas in Process>>#terminate. In fact this is
one of the darkest places of Squeak, in my opinion.
- #ensure: blocks are evaluated in the wrong process, that is the
process that calls #terminate not the one that runs the process. This
can have very strange effects, if your code depends on the current
process.
- #terminate can badly harm system if two processes concurrently try
to terminate a third process.
More?
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
More information about the Squeak-dev
mailing list
|