X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;fp=perl%2FDXCommandmode.pm;h=d5271313960a1f6f42f6142a883923aa7e9afabd;hb=f2c90f82509ae2be33216ebaed3bc9f8ea3f5f80;hp=1b08b36e6a149d4a9c82070a47e8b3f328e09c04;hpb=5fc4f15ca36b6926fac4a8b33b3944cc1f7cef49;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index 1b08b36e..d5271313 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -1309,14 +1309,17 @@ sub spawn_cmd my $t0 = [gettimeofday]; no strict 'refs'; - + + # just behave normally if something has set the "one-shot" _nospawn in the channel + return ($cmdref->(@$args)) if $self->{_nospawn}; + my $fc = Mojo::IOLoop::Subprocess->new; # $fc->serializer(\&encode_json); # $fc->deserializer(\&decode_json); $fc->run( sub { my $subpro = shift; - if (isdbg('chan')) { + if (isdbg('spawn_cmd')) { my $s = "line: $line"; $s .= ", args: " . join(', ', @$args) if $args && @$args; }