IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 18, 2006, 1:44:51 PM (20 years ago)
Author:
eugene
Message:

successful implementation of the threaded version of pcontrol

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pcontrol/CheckDoneHost.c

    r7917 r8424  
    2020      FreeIOBuffer (&buffer);
    2121      return (FALSE);
    22       /** do we need to close the connection? **/
     22      // XXX do we need to close the connection?
    2323
    2424    case PCLIENT_HUNG:
     25      // XXX should this be DONE or DOWN?/
    2526      PutHost (host, PCONTROL_HOST_DONE, STACK_BOTTOM);
    2627      if (VerboseMode()) gprint (GP_ERR, "host %s is not responding\n", host[0].hostname);
     
    3334
    3435    default:
    35       if (VerboseMode()) gprint (GP_ERR, "unknown status for pclient command: programming error\n"); 
    36       exit (1);
     36      ABORT ("unknown status for pclient command"); 
    3737  }
    3838
    3939  /** successful command, examine result **/
    4040  p = memstr (buffer.buffer, "STATUS", buffer.Nbuffer);
    41   if (p == NULL) {
    42     gprint (GP_ERR, "programming error: missing STATUS in pclient message (CheckDoneHost)\n");
    43     exit (1);
    44   }
     41  ASSERT (p != NULL, "missing STATUS in pclient message (CheckDoneHost)");
     42
    4543  sscanf (p, "%*s %d", &status);
    4644  switch (status) {
    4745    case -1:
    48       gprint (GP_ERR, "programming error: reset syntax error\n");
    49       exit (1);
     46      ABORT ("reset syntax error");
    5047     
    5148    case 0:
     
    6360
    6461    default:
    65       gprint (GP_ERR, "programming error: should not reach here (CheckDoneHost)\n");
    66       exit (1);
     62      ABORT ("should not reach here (CheckDoneHost)");
    6763  }
    68   gprint (GP_ERR, "programming error: should not reach here either (CheckDoneHost)\n");
    69   exit (1);
     64  ABORT ("should not reach here (CheckDoneHost)");
    7065}
    7166
Note: See TracChangeset for help on using the changeset viewer.