Changeset 8546 for trunk/Ohana/src/opihi/pcontrol/PclientCommand.c
- Timestamp:
- Aug 23, 2006, 5:31:09 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pcontrol/PclientCommand.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pcontrol/PclientCommand.c
r8424 r8546 20 20 21 21 /* is pipe still open? */ 22 if ((status == -1) && (errno == EPIPE)) return (PCLIENT_DOWN); 22 if ((status == -1) && (errno == EPIPE)) { 23 // gprint (GP_ERR, "pclient read gives pipe error for %s\n", command); 24 return (PCLIENT_DOWN); 25 } 23 26 24 27 /* watch for response - wait up to 1 second */ … … 30 33 if (status == -1) nanosleep (&request, &remain); 31 34 } 32 if (status == 0) return (PCLIENT_DOWN); 35 if (status == 0) { 36 // gprint (GP_ERR, "pclient read returns 0 for %s\n", command); 37 return (PCLIENT_DOWN); 38 } 33 39 if (status == -1) return (PCLIENT_HUNG); 34 40 /* gprint (GP_ERR, "buffer.buffer: %s\n", buffer[0].buffer); */
Note:
See TracChangeset
for help on using the changeset viewer.
