Best way to stop a process listening to a socket
Aug. 12, 2011
2:58 p.m.
Hi all, Suppose I have a process started w/ fork executing socket>>waitForAcceptFor: with a long deadline. Now suppose that I want it to to stop waiting, before the deadline expires. To stop it immediately, I've found out that signaling it with Process>>signalException and handling it in the Process' code by a Process>>BlockClosure>>on:do: works as expected. Is this the correct way of doing it? Should I make a specific 'Error' subclass for this? Thanks for any advice. __ Sébastien.
5467
Age (days ago)
5467
Last active (days ago)
0 comments
1 participants
participants (1)
-
Sébastien Bigaret