In your last line, you return to the caller in the child process. That leaves the child continuing with a copy of the remaining parent code. Change to
while ($self->event_loop()) { } exit 0;
After Compline,
Zaxo
In reply to Re: Forking with a socket
by Zaxo
in thread Forking with a socket
by natebailey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |