IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37792


Ignore:
Timestamp:
Jan 11, 2015, 1:08:36 PM (12 years ago)
Author:
eugene
Message:

harvest unrelated children and do not exit

Location:
branches/eam_branches/ipp-20140904/Ohana/src/libdvo/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140904/Ohana/src/libdvo/src/HostTable.c

    r37667 r37792  
    333333
    334334  // this loop has 2 chunks: (a) check for I/O + (b) check for jobs done
    335   while (1) {
     335  while (Nfound < Nrunning) {
    336336
    337337    // Wait up to 0.5 second for host to provide I/O
     
    362362        // if (table->hosts[i].stdout.Nbuffer > 0x10000) {
    363363        if (table->hosts[i].stdout.Nbuffer > 0x1000) {
    364           int printHead = VERBOSE || (table->hosts[i].stdout.Nbuffer > 0);
     364          int printHead = VERBOSE && (table->hosts[i].stdout.Nbuffer > 0);
    365365          if (printHead) fprintf (stdout, "--- stdout from %s --- (%d bytes, v1)\n", table->hosts[i].hostname, table->hosts[i].stdout.Nbuffer);
    366366          int Nout = write (STDOUT_FILENO, table->hosts[i].stdout.buffer, table->hosts[i].stdout.Nbuffer);
     
    376376        // if (table->hosts[i].stderr.Nbuffer > 0x10000) {
    377377        if (table->hosts[i].stderr.Nbuffer > 0x1000) {
    378           int printHead = VERBOSE || (table->hosts[i].stderr.Nbuffer > 0);
     378          int printHead = VERBOSE && (table->hosts[i].stderr.Nbuffer > 0);
    379379          if (printHead) fprintf (stdout, "--- stderr from %s --- (%d bytes, v1)\n", table->hosts[i].hostname, table->hosts[i].stderr.Nbuffer);
    380380          int Nout = write (STDOUT_FILENO, table->hosts[i].stderr.buffer, table->hosts[i].stderr.Nbuffer);
     
    392392      if (!pid) {
    393393        // fprintf (stderr, "no hosts to harvest\n");
    394         usleep (500000);
     394        usleep (200000);
    395395        break; // no outstanding jobs have finished
    396396      }
     
    445445        }
    446446      }
    447       if (!found) {
    448         fprintf (stderr, "Programming error: failed to matched finished job to known host!\n");
    449         exit (2);
    450       }
    451       Nfound ++;
     447      if (found) Nfound ++;
     448      // we sometimes harvest children not in the list (eg, closed kapa window).  just ignore
    452449      if (Nfound == Nrunning) goto escape; // we've harvested all jobs
    453450    }
  • branches/eam_branches/ipp-20140904/Ohana/src/libdvo/src/dvo_convert.c

    r37494 r37792  
    258258    case DVO_FORMAT_##FORMAT: { \
    259259      Measure_##TYPE *tmpMeasure; \
    260       myAssert (ABS_COORDS || average, "conversion to internal needs average table"); \
     260      myAssert (ABS_COORDS || average, "conversion from internal needs average table"); \
    261261      tmpMeasure = MeasureInternalTo_##TYPE (average, measure, Nmeasure); \
    262262      gfits_table_set_Measure_##TYPE (ftable, tmpMeasure, Nmeasure); \
Note: See TracChangeset for help on using the changeset viewer.