--- deliantra/server/ext/dm-support.ext 2007/11/25 19:08:24 1.18 +++ deliantra/server/ext/dm-support.ext 2010/04/12 17:13:36 1.27 @@ -31,11 +31,14 @@ ext::books::reload & ext::map_tags::reload & ext::map_world::reload & -print JSON::XS->new->pretty->encode({cf::mallinfo}) +# ext::map_scheduler::loadall & # debugging only! +while (EV::TIMEOUT & Coro::EV::timed_io_once \$fh, EV::READ, 1) { Coro::Debug::command "ps" } & +({mallinfo}) +({objinfo}) EOF print $fh "\n> "; - my $iow; $iow = EV::io $fh, EV::READ, sub { + my $iow; $iow = AE::io $fh, 0, sub { if (defined (my $cmd = <$fh>)) { $cmd =~ s/\s+$//; @@ -50,7 +53,7 @@ package cf; select $fh; - # compile first, the execute, as Coro does not support switching in eval string + # compile first, then execute, as Coro does not support switching in eval string my $cb = eval "sub { $cmd \n}"; my $t1 = Time::HiRes::time; @@ -90,7 +93,7 @@ # now a shell listening on a tcp-port - let the firewall decide access rights if ($cf::CFG{perl_shell}) { if (my $listen = new IO::Socket::INET LocalAddr => $cf::CFG{perl_shell}, Listen => 1, ReuseAddr => 1, Blocking => 0) { - $LISTENER = EV::io $listen, EV::READ, sub { tcp_serve $listen->accept }; + $LISTENER = AE::io $listen, 0, sub { tcp_serve $listen->accept }; } }