ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/dm-support.ext
(Generate patch)

Comparing deliantra/server/ext/dm-support.ext (file contents):
Revision 1.24 by root, Fri Oct 23 03:28:11 2009 UTC vs.
Revision 1.25 by root, Sun Apr 11 04:52:07 2010 UTC

35while (EV::TIMEOUT & Coro::EV::timed_io_once \$fh, EV::READ, 1) { Coro::Debug::command "ps" } & 35while (EV::TIMEOUT & Coro::EV::timed_io_once \$fh, EV::READ, 1) { Coro::Debug::command "ps" } &
36({cf::mallinfo}) 36({cf::mallinfo})
37EOF 37EOF
38 print $fh "\n> "; 38 print $fh "\n> ";
39 39
40 my $iow; $iow = EV::io $fh, EV::READ, sub { 40 my $iow; $iow = AE::io $fh, 0, sub {
41 if (defined (my $cmd = <$fh>)) { 41 if (defined (my $cmd = <$fh>)) {
42 $cmd =~ s/\s+$//; 42 $cmd =~ s/\s+$//;
43 43
44 if ($cmd =~ /^\s*exit\b/i) { 44 if ($cmd =~ /^\s*exit\b/i) {
45 print $fh "will not exit() server.\n"; 45 print $fh "will not exit() server.\n";
90our $LISTENER; 90our $LISTENER;
91 91
92# now a shell listening on a tcp-port - let the firewall decide access rights 92# now a shell listening on a tcp-port - let the firewall decide access rights
93if ($cf::CFG{perl_shell}) { 93if ($cf::CFG{perl_shell}) {
94 if (my $listen = new IO::Socket::INET LocalAddr => $cf::CFG{perl_shell}, Listen => 1, ReuseAddr => 1, Blocking => 0) { 94 if (my $listen = new IO::Socket::INET LocalAddr => $cf::CFG{perl_shell}, Listen => 1, ReuseAddr => 1, Blocking => 0) {
95 $LISTENER = EV::io $listen, EV::READ, sub { tcp_serve $listen->accept }; 95 $LISTENER = AE::io $listen, 0, sub { tcp_serve $listen->accept };
96 } 96 }
97} 97}
98 98
99 99

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines