Hi,

What is the reason for posting _stop event when a child decides it has
to die after it processes a connection?  It deletes its wheel anyway,
one line above the yield() call, so _stop is delivered twice:  once by
yield(), and once by the normal cleanup procedure.

Index: preforkedserver.perl
===================================================================
RCS file: /cvsroot/poe/poe/samples/preforkedserver.perl,v
retrieving revision 1.11
diff -u -r1.11 preforkedserver.perl
--- preforkedserver.perl        2001/05/07 12:23:04     1.11
+++ preforkedserver.perl        2001/07/23 11:30:31
@@ -283,7 +283,6 @@
   if ($heap->{'is a child'}) {
     if (++$heap->{connections} >= 1) {
       delete $heap->{wheel};
-      $kernel->yield('_stop');
     }
   }
 }

=Anton.
-- 
May the tuna salad be with you.

Reply via email to