On Tue, Oct 21, 2014 at 03:22:59PM -0400, Andrew Piskorski wrote:

>     return Ns_Main(argc, argv, ServerInit); 
> 
> But where does that ServerInit thing come from?  And why is it NULL
> when running as a Windows Service, but ok when Naviserver is started
> interactively?

Ah, I see:  ServiceMain() explicitly passes in a NULL initProc:

  Ns_Main((int)argc, argv, NULL);

So, is it supposed to be passing in something else, or is it ok for
that to be NULL and the assertion is inappropriate in this case?
Where are these initProc pointers supposed to come from?  Are we
missing a call to NsRegisterServerInit() somewhere?

Is there a document somewhere explaining the design of Naviserver's
virtual servers, what they're for and how the code underneath sets
them up?  Maybe in an older email?

So far I found this thread, which gives some hints but not a full
explanation:

  
http://www.mail-archive.com/naviserver-devel%40lists.sourceforge.net/msg01707.html
  Re: [naviserver-devel] Explanation of last changes
  Vlad Seryakov Thu, 07 Sep 2006 12:38:46 -0700

-- 
Andrew Piskorski <a...@piskorski.com>

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to