Skip to content

Commit

Permalink
remove an extra _stop in child processes
Browse files Browse the repository at this point in the history
  • Loading branch information
rcaputo committed Jul 25, 2001
1 parent 902abb0 commit f5b82c0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions samples/preforkedserver.perl
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ sub new {
my ($type, $processes) = @_;
my $self = bless { }, $type;

POE::Session->new( $self,
[ qw(_start _stop fork retry signal connection) ],
POE::Session->new( $self, [ qw(_start _stop fork retry signal connection) ],
# ARG0
[ $processes ]
);
Expand Down Expand Up @@ -283,7 +282,6 @@ sub connection {
if ($heap->{'is a child'}) {
if (++$heap->{connections} >= 1) {
delete $heap->{wheel};
$kernel->yield('_stop');
}
}
}
Expand Down

0 comments on commit f5b82c0

Please sign in to comment.