Jim Davidson
Fri, 11 Apr 2008 10:33:14 -0700
Hi,I don't think you lose anything -- Tcl_Finalize carefully tears everything down which is good when the code is used in an embedded system but in AOLserver as a normal process on Unix or Windows the resulting _exit doesn't care about all the work Tcl_Finalize may have done.
-Jim On Apr 11, 2008, at 6:25 AM, Titi Alailima wrote:
I checked out the exit code in nsmain.c and saw the following sequence:/* * Remove the pid maker file, print a final "server exiting" * status message and return to main. */ NsRemovePidFile(procname); StatusMsg(3); Tcl_Finalize(); return 0;The pidfile is getting removed, and the status message is showing up, so I figured it had something to do with the Tcl_Finalize. I commented that out and recompiled and the service exits fine. My question now is what do I lose by not calling Tcl_Finalize?Titi Ala'ilima Lead Architect MedTouch LLC 1100 Massachusetts Avenue Cambridge, MA 02138 617.621.8670 x309From: AOLserver Discussion [EMAIL PROTECTED] On Behalf Of Titi AlailimaSent: Thursday, April 10, 2008 3:53 PM To: AOLSERVER@LISTSERV.AOL.COM Subject: [AOLSERVER] AOLserver 4.5.0 on windows not exiting serviceI’ve installed the binaries from http://www.friendlybits.com/en/inf_tec_en/win32openacs_en/ and even recompiled a couple small patches in and it runs fine. The only issue now is when I install it as a service (with –I) I can’t get the service to stop. I get this in the log file: [10/Apr/2008:15:40:01][3760.4040][-thread4040-] Notice: nsmain: AOLserver/4.5.0 stopping [10/Apr/2008:15:40:01][3760.4040][-thread4040-] Notice: driver: stopping: nssock [10/Apr/2008:15:40:01][3760.4040][-thread4040-] Notice: sched: shutdown pending [10/Apr/2008:15:40:01][3760.3728][-sched-] Notice: sched: shutdown started[10/Apr/2008:15:40:01][3760.3648][-nssock:driver-] Notice: exiting[10/Apr/2008:15:40:01][3760.3728][-sched-] Notice: sched: shutdown complete [10/Apr/2008:15:40:01][3760.4040][-thread4040-] Notice: driver: stopped: nssock [10/Apr/2008:15:40:01][3760.3828][-shutdown-] Notice: nslog: closing 'c:/Documents and Settings/Administrator/Desktop/cbinstall/log/ staging-access.log' [10/Apr/2008:15:40:01][3760.4040][-thread4040-] Notice: nsmain: AOLserver/4.5.0 exitingThe nsd.exe process doesn’t ever terminate so the services manager never views the service as having stopped. If I kill the process manually, it can come back up again cleanly, but I’d like to not have to do that.Titi Ala'ilima Lead Architect MedTouch LLC 1100 Massachusetts Avenue Cambridge, MA 02138 617.621.8670 x309 -- AOLserver - http://www.aolserver.com/To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED] > with thebody of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.-- AOLserver - http://www.aolserver.com/To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED] > with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
-- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.