$Server = IO::Socket::UNIX->new(Listen=>1, ...) or die; while(1) { $sock = $Server->accept(); next unless $sock; ... }
Why does sometimes accept() return undef (and thus I need the 'next unless $sock' line)? Shouldn't accept() block and return a valid socket each time?
In reply to Empty after accept? by dgaramond2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |