IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10668


Ignore:
Timestamp:
Dec 12, 2006, 3:10:46 PM (20 years ago)
Author:
eugene
Message:

flush stderr, removed debug statements

Location:
trunk/Ohana/src/opihi/pcontrol
Files:
4 edited

Legend:

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

    r10665 r10668  
    11# include "pcontrol.h"
    2 # define DEBUG 1
     2# define DEBUG 0
    33
    44int CheckBusyJob (Job *job, Host *host) {
     
    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       }
    4941      PutHost (host, PCONTROL_HOST_BUSY, STACK_BOTTOM);
    5042      PutJob (job, PCONTROL_JOB_BUSY, STACK_BOTTOM);
  • trunk/Ohana/src/opihi/pcontrol/CheckDoneHost.c

    r10661 r10668  
    11# include "pcontrol.h"
    2 # define DEBUG 1
     2# define DEBUG 0
    33
    44int CheckDoneHost (Host *host) {
  • trunk/Ohana/src/opihi/pcontrol/CheckSystem.c

    r10662 r10668  
    11# include "pcontrol.h"
    2 # define DEBUG 1
     2# define DEBUG 0
    33
    44static struct timeval lastlive = {0, 0};
  • trunk/Ohana/src/opihi/pcontrol/PclientCommand.c

    r10667 r10668  
    2121  ReadtoIOBuffer (buffer, host[0].stdout);
    2222  FlushIOBuffer (buffer);
    23 
    2423  ReadtoIOBuffer (buffer, host[0].stderr);
    2524  FlushIOBuffer (buffer);
Note: See TracChangeset for help on using the changeset viewer.