help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] Delay in a Process and sending #terminate


From: Holger Hans Peter Freyther
Subject: [Help-smalltalk] Delay in a Process and sending #terminate
Date: Sat, 18 Dec 2010 11:38:22 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b2 Thunderbird/3.1.7

Hi all,

I have made the following observation and wonder if this is a bug or such.

$ a := [[(Delay forSeconds: 300) wait] ensure: ['Terminated' printNl]] fork.
$ a terminate
Process(nil at userSchedulingPriority, ready to run)
$ a terminate
'Terminated'
Process(nil at userSchedulingPriority, terminated)


To work around such sticky processes I have decided to use a [proc
isTerminated] whileFalse: [proc terminate] construct.

regards
        holger




reply via email to

[Prev in Thread] Current Thread [Next in Thread]