Re: Issue 2792 in pharo: Process>>isTerminated raises an error time to time

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Issue 2792 in pharo: Process>>isTerminated raises an error time to time

pharo

Comment #3 on issue 2792 by [hidden email]: Process>>isTerminated  
raises an error time to time
http://code.google.com/p/pharo/issues/detail?id=2792

I see a bug here too.

I simply can't open the process viewer unless I use this pathed version of  
#isTerminated

isTerminated

        self isActiveProcess ifTrue: [^ false].
        ^suspendedContext isNil
          or: ["If the suspendedContext is the bottomContext it is the block in  
Process>>newProcess.
                   If so, and the pc is greater than the startpc, the bock has alrteady  
sent and returned
                   from value and there is nothing more to do."
                (suspendedContext isBottomContext and:[
                suspendedContext pc isNil]) or:[
                (suspendedContext isBottomContext and:[
                suspendedContext pc > suspendedContext startpc])]]