IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 23, 2006, 5:31:09 PM (20 years ago)
Author:
eugene
Message:

cleanup of timeouts and thread-safety issues

File:
1 edited

Legend:

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

    r8424 r8546  
    2020
    2121  /* 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  }
    2326 
    2427  /* watch for response - wait up to 1 second */
     
    3033    if (status == -1) nanosleep (&request, &remain);
    3134  }
    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  }
    3339  if (status == -1) return (PCLIENT_HUNG);
    3440  /* gprint (GP_ERR, "buffer.buffer: %s\n", buffer[0].buffer); */
Note: See TracChangeset for help on using the changeset viewer.