<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=296045515-19042006><FONT face="Trebuchet MS" size=2>Hi
all,</FONT></SPAN></DIV>
<DIV><SPAN class=296045515-19042006><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=296045515-19042006> <FONT face="Trebuchet MS"
size=2>I have a Squeak3.8-6665full.image running a Pier wiki in linux. I've
managed to make some scripts to start and stop it
headless.</FONT></SPAN></DIV>
<DIV><SPAN class=296045515-19042006> <FONT face="Trebuchet MS"
size=2>What I'm trying to do now is to make an option to stop this service
saving the image. Right now it starts ok and quits without saving ok, but the
option I've made to quit saving the image is not saving it.</FONT></SPAN></DIV>
<DIV><SPAN class=296045515-19042006><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=296045515-19042006> <FONT face="Trebuchet MS"
size=2>When I send the signal I see the process quiting immediately where in the
other hand if I evaluate "SmalltalkImage current snapshot: false andQuit: true"
in the squeak environment, it has a normal "image save
delay".</FONT></SPAN></DIV>
<DIV><SPAN class=296045515-19042006><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=296045515-19042006> <FONT face="Trebuchet MS"
size=2>Perhaps the linux isn't giving enough time to the process so the image
can save? anybody has a workarround for this?</FONT></SPAN></DIV>
<DIV><SPAN class=296045515-19042006><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=296045515-19042006> <FONT face="Trebuchet MS"
size=2>thank you,</FONT></SPAN></DIV>
<DIV><SPAN class=296045515-19042006><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=296045515-19042006><FONT face="Trebuchet MS"
size=2>Sebastian</FONT></SPAN></DIV>
<DIV><SPAN class=296045515-19042006><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=296045515-19042006> <FONT face="Trebuchet MS"
size=2>Here is the relevant script:</FONT></SPAN></DIV>
<DIV><SPAN class=296045515-19042006><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=296045515-19042006><FONT face="Trebuchet MS"
size=2> cleaner := [ <BR> logger value:'Clearing handlers
de WARegistry...' value: logFile.<BR> WARegistry
clearAllHandlers.<BR> logger value:'Garbage collecting...' value:
logFile.<BR> Smalltalk garbageCollect].</FONT></SPAN></DIV>
<DIV><FONT face="Trebuchet MS" size=2></FONT> </DIV>
<DIV><SPAN class=296045515-19042006><FONT face="Trebuchet MS" size=2> quit
:= [OSProcess accessor forwardSigQuit wait.</FONT></SPAN></DIV>
<DIV><FONT face="Trebuchet MS" size=2></FONT> </DIV>
<DIV><SPAN class=296045515-19042006><FONT face="Trebuchet MS"
size=2> logger value:'Received SIGQUIT' value:
logFile.<BR> cleaner value.<BR> logger value:'Closing
squeak without saving image...' value: logFile.<BR> SmalltalkImage
current snapshot: false andQuit: true].</FONT></SPAN></DIV>
<DIV><FONT face="Trebuchet MS" size=2></FONT> </DIV><SPAN
class=296045515-19042006>
<DIV><FONT face="Trebuchet MS" size=2></FONT><FONT face="Trebuchet MS"
size=2></FONT><BR><FONT face="Trebuchet MS" size=2> term := [OSProcess
accessor forwardSigTerm wait.</FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2></FONT> </DIV>
<DIV><FONT face="Trebuchet MS" size=2> logger value:'Rec<SPAN
class=296045515-19042006>eived </SPAN>SIGTERM' value:
logFile.<BR> cleaner value.<BR> logger value:'<SPAN
class=296045515-19042006>Closing</SPAN> squeak <SPAN
class=296045515-19042006>saving </SPAN>image...' value:
logFile.<BR> SmalltalkImage current snapshot: <SPAN
class=296045515-19042006>true </SPAN>andQuit: true].</FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2></FONT> </DIV>
<DIV><FONT face="Trebuchet MS" size=2> (Smalltalk at:#asistente)
<BR> at:#quit put: quit;<BR> at:#term put:
term;<BR> yourself.<BR></FONT></DIV>
<DIV><FONT><SPAN class=296045515-19042006><FONT face="Trebuchet MS" size=2>I've
also tried with SIGINT with the same
result.</FONT></SPAN></DIV></FONT></SPAN></BODY></HTML>