fix spawn_cmd in Cron so anyone can use it
[spider.git] / perl / DXCron.pm
index d2a109332aa2a89206b72463ba27af618bb25849..16d27cddd03f051cad1feaa3dc7e0b37ac008644 100644 (file)
@@ -305,7 +305,6 @@ sub spawn_cmd
                                 }
                                 for (@res) {
                                         if (ref $chan) {
-                                                dbg("send: $_");
                                                 $chan->send($_);
                                         } elsif (isdbg('cron')) {
                                                 dbg("$pkg::spawn_cmd: $_");
@@ -316,6 +315,7 @@ sub spawn_cmd
                                 diffms($pkg, "::spawn_cmd", $line, $t0, scalar @res) if isdbg('progress');
                         }
                        );
+       return ();
 }
 
 # do an rcmd to another cluster from the crontab