--- deliantra/Deliantra-Client/DC/DB.pm 2007/04/06 08:09:43 1.2 +++ deliantra/Deliantra-Client/DC/DB.pm 2007/04/06 21:53:56 1.3 @@ -21,6 +21,8 @@ use AnyEvent (); use Storable (); # finally +use CFPlus; + sub sync { # for debugging #CFPlus::DB::Server::req (sync => sub { }); @@ -280,7 +282,7 @@ } close $fh; - fcntl $FH, F_SETFL, O_NONBLOCK; + CFPlus::fh_nonblocking $FH, 1; $CB{die} = sub { die shift };