X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXProt.pm;h=8b9026c1f700e71945feda5329efcf9b2b431f95;hb=f2c90f82509ae2be33216ebaed3bc9f8ea3f5f80;hp=7c1ed1a4e0d2a976015d465abfb465e2409357f2;hpb=5fc4f15ca36b6926fac4a8b33b3944cc1f7cef49;p=spider.git diff --git a/perl/DXProt.pm b/perl/DXProt.pm index 7c1ed1a4..8b9026c1 100644 --- a/perl/DXProt.pm +++ b/perl/DXProt.pm @@ -1216,6 +1216,9 @@ sub spawn_cmd my $fc = Mojo::IOLoop::Subprocess->new; + # just behave normally if something has set the "one-shot" _nospawn in the channel + return ($cmdref->(@$args)) if $self->{_nospawn}; + # $fc->serializer(\&encode_json); # $fc->deserializer(\&decode_json); $fc->run(