Instead of using accept inside the parenthesis, use it inside the loop and continue if succeeded. It worked for me.while() { my $ret=accept($client,$server); next if (not defined($ret)); . . }
In reply to Re: Catching a signal causes my socket server to die
by lakshmananindia
in thread Catching a signal causes my socket server to die
by jimmy5804
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |