Hi,

What is the easiest way to achieve this goal, so that the master process
will only provide watchdog functionality?

It seems to me that it might be enough to do just that (the diff is
relative to the samples/preforkedserver.perl), but I am not sure:

--- preforkedserver.perl.orig   Thu Jul 19 16:01:35 2001
+++ preforkedserver.perl        Thu Jul 19 16:02:11 2001
@@ -154,10 +154,12 @@
                                         # change behavior for children
   $heap->{'is a child'} = 0;
                                         # fork the initial set of children
-  foreach (2..$processes) {
+  foreach (1..$processes) {
                                         # yield() posts events to this session
     $kernel->yield('fork');
   }
+
+  delete $heap->{wheel};
 
   DEBUG && print "$$: master server has started\n";
 }

Am I right?

Thanks,
\Anton.
-- 
May the tuna salad be with you.

Reply via email to