nospawnify the rest of the known commands
[spider.git] / cmd / show / log.pl
index 29d2b51232aca51f3bae521e98ce2ac42b18d1e5..82356bcd390029c726efc6e91f89c9389fc6f09f 100644 (file)
@@ -41,7 +41,6 @@ sub handle
                $who = $self->call;
        }
 
-       @out = $self->spawn_cmd("show/log $cmdline", \&DXLog::print, args => [$from, $to, $main::systime, undef, $who]);
-       
-       return (1, @out);
+       return (1, DXLog::print($from, $to, $main::systime, undef, $who)) if $self->{_nospawn};
+       return (1, $self->spawn_cmd("show/log $cmdline", \&DXLog::print, args => [$from, $to, $main::systime, undef, $who]));
 }