I then add it to my IO::Select by:$client->{socket} = IO::Socket::UNIX->new(Type => SOCK_STREAM, Listen +=> 5, Local => $filename); chmod 777, $filename;
and attempt to wait for a connection by:$sel->add($client->{socket});
1. %client is just a hash 2. The file pointed to by $filename does not exist before the call to IO::Socket::UNIX->new and does exist after, so it is getting created 3. The directory where I am creating the file has been chmod'd 777 to ensure this is not a permissions issue. Whenver I reach the while clause, the program immediately ends. If I use the Komodo debugger to step through the code, it ends in IO::Select at the line:while($sel->can_read) { ... }
handles is not being called and it's not returning the empty array, it's simply ending the program. I've tried catching an exception with a try/catch block, but got nothing. Any idea what's going on here?defined ($r) && (select($r, undef, undef, $timeout) > 0)) ? handles(&v +ec, $r) : ();
In reply to Problems with IO::Select by dirtdart
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |