/[mdap]/mdap-server.pl
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 /mdap-server.pl

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

revision 29 by dpavlin, Tue Apr 24 10:11:24 2007 UTC revision 30 by dpavlin, Tue Apr 24 14:53:04 2007 UTC
# Line 156  sub once { Line 156  sub once {
156          print $m if ($once->{$m} == 1);          print $m if ($once->{$m} == 1);
157  }  }
158    
159    my $status = '';
160    
161    sub status {
162            my $m = join('', @_);
163            if ($m ne $status) {
164                    print $m;
165                    $status = $m;
166            }
167    }
168    
169  local $SIG{ALRM} = sub {  local $SIG{ALRM} = sub {
170          mdap_send("ANT-SEARCH MDAP/1.1\r\n");          mdap_send("ANT-SEARCH MDAP/1.1\r\n");
171          alarm( $resend_search_delay );          alarm( $resend_search_delay );
# Line 229  while (1) { Line 239  while (1) {
239                                                  $waiting++ if ($ant_flashing->{$_});                                                  $waiting++ if ($ant_flashing->{$_});
240                                                  $count++;                                                  $count++;
241                                          } keys %$ant_flashing;                                          } keys %$ant_flashing;
242                                          if ($ant_flashing && $waiting == 0) {                                          if ($waiting == 0) {
243                                                  print "**** ALL $count ANTS FLASHED ****\n";                                                  status "ALL $count ANTS FLASHED to $build\n";
244                                                  $ant_flashing = {};                                                  $ant_flashing = undef;
245                                            } else {
246                                                    status "$waiting of $count ants still flasing upto $build\n";
247                                          }                                          }
248                                  }                                  }
249                          } else {                          } else {

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

  ViewVC Help
Powered by ViewVC 1.1.26