Changeset 25872 for trunk/Ohana/src/opihi/pcontrol/CheckRespHost.c
- Timestamp:
- Oct 18, 2009, 10:29:11 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pcontrol/CheckRespHost.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pcontrol/CheckRespHost.c
r17476 r25872 32 32 host[0].response = NULL; 33 33 34 // host has shutdown; harvest the defunct process 34 // if want the host to be shutdown, accept the result 35 if (host[0].response_state == PCONTROL_RESP_DOWN_HOST) { 36 if (DEBUG) fprintf (stderr, "PCONTROL_RESP_DOWN_HOST\n"); 37 DownHostResponse (host); 38 return TRUE; 39 } 40 if (host[0].response_state == PCONTROL_RESP_STOP_HOST) { 41 if (DEBUG) fprintf (stderr, "PCONTROL_RESP_STOP_HOST\n"); 42 StopHostResponse (host); 43 return TRUE; 44 } 45 46 // host has unexpectedly shutdown; harvest the defunct process 35 47 HarvestHost (host[0].pid); 36 48 PutHost (host, PCONTROL_HOST_DOWN, STACK_BOTTOM); … … 47 59 48 60 case PCLIENT_GOOD: 49 if (VerboseMode()) gprint (GP_ERR, "message received (CheckRespHost)\n");50 61 break; 51 62 … … 80 91 break; 81 92 93 case PCONTROL_RESP_DOWN_HOST: 94 if (DEBUG) fprintf (stderr, "PCONTROL_RESP_DOWN_HOST\n"); 95 status = DownHostResponse (host); 96 break; 97 82 98 case PCONTROL_RESP_STOP_HOST: 83 99 if (DEBUG) fprintf (stderr, "PCONTROL_RESP_STOP_HOST\n");
Note:
See TracChangeset
for help on using the changeset viewer.
