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.12 by root, Sun Sep 30 22:33:52 2007 UTC vs.
Revision 1.13 by root, Mon Oct 1 00:44:43 2007 UTC

37 37
38 Event->io (fd => $fh, poll => 'r', data => 0, cb => sub { 38 Event->io (fd => $fh, poll => 'r', data => 0, cb => sub {
39 if (defined (my $cmd = <$fh>)) { 39 if (defined (my $cmd = <$fh>)) {
40 $cmd =~ s/\s+$//; 40 $cmd =~ s/\s+$//;
41 41
42 select $fh;
43 if ($cmd =~ /^\s*exit\b/i) { 42 if ($cmd =~ /^\s*exit\b/i) {
44 print "will not exit() server.\n"; 43 print $fh "will not exit() server.\n";
45 } elsif ($cmd =~ s/^coro\s+// or $cmd =~ /^(?:ps|bt\s)/) { 44 } elsif ($cmd =~ s/^coro\s+// or $cmd =~ /^(?:ps|bt\s)/) {
45 select $fh;
46 Coro::Debug::command $cmd; 46 Coro::Debug::command $cmd;
47 select STDOUT;
47 } else { 48 } else {
48 my $sub = sub { 49 my $sub = sub {
49 package cf; 50 package cf;
50 select $fh; 51 select $fh;
51 52
75 } else { 76 } else {
76 $sub->(); 77 $sub->();
77 } 78 }
78 } 79 }
79 80
80 print "\n> "; 81 print $fh "\n> ";
81 select STDOUT;
82 } else { 82 } else {
83 $_[0]->w->cancel; 83 $_[0]->w->cancel;
84 } 84 }
85 }); 85 });
86} 86}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines