nospawnify some of the commands
[spider.git] / perl / DXProt.pm
index 7c1ed1a4e0d2a976015d465abfb465e2409357f2..8b9026c1f700e71945feda5329efcf9b2b431f95 100644 (file)
@@ -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(