in reply to Catching a signal causes my socket server to die
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)); . . }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Catching a signal causes my socket server to die
by ikegami (Patriarch) on Jan 07, 2009 at 09:26 UTC |