<!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>&nbsp;</DIV>
<DIV><SPAN class=296045515-19042006>&nbsp;&nbsp;&nbsp; <FONT face="Trebuchet MS" 
size=2>I have a Squeak3.8-6665full.image running a Pier wiki in linux. I've 
managed to make&nbsp;some scripts to start and stop it 
headless.</FONT></SPAN></DIV>
<DIV><SPAN class=296045515-19042006>&nbsp;&nbsp;&nbsp; <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>&nbsp;</DIV>
<DIV><SPAN class=296045515-19042006>&nbsp;&nbsp;&nbsp; <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>&nbsp;</DIV>
<DIV><SPAN class=296045515-19042006>&nbsp;&nbsp;&nbsp; <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&nbsp; for this?</FONT></SPAN></DIV>
<DIV><SPAN class=296045515-19042006><FONT face="Trebuchet MS" 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=296045515-19042006>&nbsp;&nbsp;&nbsp; <FONT face="Trebuchet MS" 
size=2>thank you,</FONT></SPAN></DIV>
<DIV><SPAN class=296045515-19042006><FONT face="Trebuchet MS" 
size=2></FONT></SPAN>&nbsp;</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>&nbsp;</DIV>
<DIV><SPAN class=296045515-19042006>&nbsp;&nbsp;&nbsp; <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>&nbsp;</DIV>
<DIV><SPAN class=296045515-19042006><FONT face="Trebuchet MS" 
size=2>&nbsp;cleaner := [&nbsp;<BR>&nbsp;&nbsp;logger value:'Clearing handlers 
de WARegistry...' value: logFile.<BR>&nbsp;&nbsp;WARegistry 
clearAllHandlers.<BR>&nbsp;&nbsp;logger value:'Garbage collecting...' value: 
logFile.<BR>&nbsp;&nbsp;Smalltalk garbageCollect].</FONT></SPAN></DIV>
<DIV><FONT face="Trebuchet MS" size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=296045515-19042006><FONT face="Trebuchet MS" size=2>&nbsp;quit 
:= [OSProcess accessor forwardSigQuit wait.</FONT></SPAN></DIV>
<DIV><FONT face="Trebuchet MS" size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=296045515-19042006><FONT face="Trebuchet MS" 
size=2>&nbsp;&nbsp;logger value:'Received SIGQUIT' value: 
logFile.<BR>&nbsp;&nbsp;cleaner value.<BR>&nbsp;&nbsp;logger value:'Closing 
squeak without saving image...' value: logFile.<BR>&nbsp;&nbsp;SmalltalkImage 
current snapshot: false andQuit: true].</FONT></SPAN></DIV>
<DIV><FONT face="Trebuchet MS" size=2></FONT>&nbsp;</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>&nbsp;term := [OSProcess 
accessor forwardSigTerm wait.</FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" size=2>&nbsp;&nbsp;logger value:'Rec<SPAN 
class=296045515-19042006>eived </SPAN>SIGTERM' value: 
logFile.<BR>&nbsp;&nbsp;cleaner value.<BR>&nbsp;&nbsp;logger value:'<SPAN 
class=296045515-19042006>Closing</SPAN> squeak&nbsp;<SPAN 
class=296045515-19042006>saving </SPAN>image...' value: 
logFile.<BR>&nbsp;&nbsp;SmalltalkImage current snapshot:&nbsp;<SPAN 
class=296045515-19042006>true </SPAN>andQuit: true].</FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" size=2>&nbsp;(Smalltalk at:#asistente) 
<BR>&nbsp;&nbsp;at:#quit put: quit;<BR>&nbsp;&nbsp;at:#term put: 
term;<BR>&nbsp;&nbsp;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>