OSProcess: making sure that a child process always dies
Damien Pollet
damien.pollet at gmail.com
Mon Mar 19 13:31:06 UTC 2007
2007/3/19, Joshua Gargus <schwa at fastmail.us>:
> Thanks David, this is very much appreciated.
Hi, and thanks too.
I have a similar problem. The method to intercept sigterm seems to
work only once, so I tried to put a loop in it:
[[
OSProcess accessor forwardSigUsr1 wait.
SmalltalkImage current snapshot: true andQuit: false
] repeat ] fork
It works once (I kill -USR1 squeak and get a message in the
transcript), but after that, OSProcess accessor forwardSigUsr1 returns
nil... that's a problem because the goal is to trigger as many
snapshots as needed.
Any ideas ?
--
Damien Pollet
type less, do more [ | ] http://typo.cdlm.fasmz.org
More information about the Squeak-dev
mailing list
|