IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10665


Ignore:
Timestamp:
Dec 12, 2006, 2:58:05 PM (20 years ago)
Author:
eugene
Message:

flush stderr for clients

File:
1 edited

Legend:

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

    r10663 r10665  
    3939      // don't do anything drastic, just keep trying
    4040      if (DEBUG || VerboseMode()) gprint (GP_ERR, "client is busy, not responding");
     41      fprintf (stderr, "nothing in buffer? Nbuffer: %d, buffer: ..%s..\n", buffer.Nbuffer, buffer.buffer);
     42      FlushIOBuffer (&buffer);
     43
     44      // is there left-over data on the host stderr?
     45      while (ReadtoIOBuffer (&buffer, host[0].stderr) > 0) {
     46        fprintf (stderr, "anything in stderr? Nbuffer: %d, buffer: ..%s..\n", buffer.Nbuffer, buffer.buffer);
     47        FlushIOBuffer (&buffer);
     48      }
    4149      PutHost (host, PCONTROL_HOST_BUSY, STACK_BOTTOM);
    4250      PutJob (job, PCONTROL_JOB_BUSY, STACK_BOTTOM);
Note: See TracChangeset for help on using the changeset viewer.