Changeset 8424 for trunk/Ohana/src/opihi/pcontrol/CheckDoneHost.c
- Timestamp:
- Aug 18, 2006, 1:44:51 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pcontrol/CheckDoneHost.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pcontrol/CheckDoneHost.c
r7917 r8424 20 20 FreeIOBuffer (&buffer); 21 21 return (FALSE); 22 / ** do we need to close the connection? **/22 // XXX do we need to close the connection? 23 23 24 24 case PCLIENT_HUNG: 25 // XXX should this be DONE or DOWN?/ 25 26 PutHost (host, PCONTROL_HOST_DONE, STACK_BOTTOM); 26 27 if (VerboseMode()) gprint (GP_ERR, "host %s is not responding\n", host[0].hostname); … … 33 34 34 35 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"); 37 37 } 38 38 39 39 /** successful command, examine result **/ 40 40 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 45 43 sscanf (p, "%*s %d", &status); 46 44 switch (status) { 47 45 case -1: 48 gprint (GP_ERR, "programming error: reset syntax error\n"); 49 exit (1); 46 ABORT ("reset syntax error"); 50 47 51 48 case 0: … … 63 60 64 61 default: 65 gprint (GP_ERR, "programming error: should not reach here (CheckDoneHost)\n"); 66 exit (1); 62 ABORT ("should not reach here (CheckDoneHost)"); 67 63 } 68 gprint (GP_ERR, "programming error: should not reach here either (CheckDoneHost)\n"); 69 exit (1); 64 ABORT ("should not reach here (CheckDoneHost)"); 70 65 } 71 66
Note:
See TracChangeset
for help on using the changeset viewer.
