--- deliantra/server/ext/dm-support.ext 2007/08/28 19:30:09 1.8 +++ deliantra/server/ext/dm-support.ext 2007/09/20 12:30:28 1.11 @@ -1,5 +1,6 @@ #! perl +use Coro::Debug; use IO::Socket; use Storable qw/nfreeze thaw/; @@ -31,6 +32,7 @@ reload_archetypes & ext::help::reload & ext::books::reload & +ext::map_tags::reload & ext::map_world::reload & EOF print "\n> "; @@ -41,6 +43,8 @@ if ($cmd =~ /^\s*exit\b/i) { print "will not exit() server.\n"; + } elsif ($cmd =~ s/^coro\s+// or $cmd =~ /^(?:ps|bt\s)/) { + Coro::Debug::command $cmd; } else { my $sub = sub { package cf; @@ -63,7 +67,10 @@ }; if ($cmd =~ s/\s*&$//) { - Coro::async { $sub->() }; + cf::async { + $Coro::current->desc ($cmd); + $sub->() + }; } else { $sub->(); } @@ -82,3 +89,5 @@ Event->io (fd => $listen, poll => 'r', data => cf::WF_AUTOCANCEL, cb => sub { tcp_serve $listen->accept }); } } + +