natebailey has asked for the wisdom of the Perl Monks concerning the following question:
carp '[BROKER: Forking infinite loop]' if DEBUG >= DEBUG_MEDIU +M; my $ret; if ($ret = fork()) { carp "[BROKER: Parent returning (child PID=$ret)]" if +DEBUG >= D EBUG_MEDIUM; # perldoc -f fork tells us to reopen to /dev/null, wil +l this wor k? close($self->{_server}); $self->DESTROY; return $ret; } carp '[BROKER: Child looping]' if DEBUG >= DEBUG_MEDIUM; while ($self->event_loop()) { } return undef;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Forking with a socket
by Zaxo (Archbishop) on Jul 07, 2003 at 01:15 UTC | |
|
Re: Forking with a socket
by Corion (Patriarch) on Jul 07, 2003 at 11:00 UTC |