/[Grep]/lib/Grep/Action/Search.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/Grep/Action/Search.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 29 by dpavlin, Mon Feb 19 18:25:12 2007 UTC revision 30 by dpavlin, Mon Feb 19 20:07:48 2007 UTC
# Line 33  sub take_action { Line 33  sub take_action {
33    
34          if ($results > 0) {          if ($results > 0) {
35          $self->result->message( "Found $results results" );          $self->result->message( "Found $results results" );
   
                 warn "### about to fork!";  
   
                 if (fork) {  
                         my $t = $results;  
                         warn "### sleeping $t s...";  
                         sleep $t;  
                         warn "### pushing results for $q after $t s";  
   
                         Jifty->log->error('result not collection but ', dump( $coll ))  
                                 unless ( $coll->isa('Jifty::Collection') );  
                         Grep::Event::Result->new({ q => $q, coll => $coll, item_fragment => 'long' })->publish;  
                         exit 0;  
                 }  
   
36          } else {          } else {
37                  $self->result->error('No local results found, wait for remote results to arrive...');                  $self->result->error('No local results found, wait for remote results to arrive...');
38          }          }

Legend:
Removed from v.29  
changed lines
  Added in v.30

  ViewVC Help
Powered by ViewVC 1.1.26