Changeset 17475 for trunk/Ohana/src/opihi/pcontrol/StopHosts.c
- Timestamp:
- Apr 23, 2008, 11:35:39 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pcontrol/StopHosts.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pcontrol/StopHosts.c
r16472 r17475 72 72 73 73 int status; 74 IOBuffer buffer;75 74 76 InitIOBuffer (&buffer, 0x100); 77 status = PclientCommand (host, "exit", "Goodbye", &buffer); 78 FreeIOBuffer (&buffer); 75 status = PclientCommand (host, "exit", "Goodbye", PCONTROL_RESP_STOP_HOST); 79 76 80 77 /* check on success of pclient command */ 81 78 switch (status) { 82 79 case PCLIENT_DOWN: 83 break; 84 85 case PCLIENT_HUNG: 86 gprint (GP_ERR, "host %s is not responding\n", host[0].hostname); 80 // XXX this is the desired result in any case, so ignore it 87 81 break; 88 82 89 83 case PCLIENT_GOOD: 90 break; 84 if (VerboseMode()) gprint (GP_ERR, "stop host %s\n", host[0].hostname); 85 FlushIOBuffer (&host[0].comms_buffer); 86 PutHost (host, PCONTROL_HOST_RESP, STACK_BOTTOM); 87 return (TRUE); 91 88 92 89 default: 93 gprint (GP_ERR, "unknown status for pclient command: programming error\n"); 94 pcontrol_exit (57); 90 ABORT ("unknown status for pclient command"); 95 91 } 92 ABORT ("should not reach here"); 93 } 94 95 int StopHostResponse (Host *host) { 96 96 97 HarvestHost (host[0].pid); 97 98 return (TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.
