Changeset 10668
- Timestamp:
- Dec 12, 2006, 3:10:46 PM (20 years ago)
- Location:
- trunk/Ohana/src/opihi/pcontrol
- Files:
-
- 4 edited
-
CheckBusyJob.c (modified) (2 diffs)
-
CheckDoneHost.c (modified) (1 diff)
-
CheckSystem.c (modified) (1 diff)
-
PclientCommand.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pcontrol/CheckBusyJob.c
r10665 r10668 1 1 # include "pcontrol.h" 2 # define DEBUG 12 # define DEBUG 0 3 3 4 4 int CheckBusyJob (Job *job, Host *host) { … … 39 39 // don't do anything drastic, just keep trying 40 40 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 }49 41 PutHost (host, PCONTROL_HOST_BUSY, STACK_BOTTOM); 50 42 PutJob (job, PCONTROL_JOB_BUSY, STACK_BOTTOM); -
trunk/Ohana/src/opihi/pcontrol/CheckDoneHost.c
r10661 r10668 1 1 # include "pcontrol.h" 2 # define DEBUG 12 # define DEBUG 0 3 3 4 4 int CheckDoneHost (Host *host) { -
trunk/Ohana/src/opihi/pcontrol/CheckSystem.c
r10662 r10668 1 1 # include "pcontrol.h" 2 # define DEBUG 12 # define DEBUG 0 3 3 4 4 static struct timeval lastlive = {0, 0}; -
trunk/Ohana/src/opihi/pcontrol/PclientCommand.c
r10667 r10668 21 21 ReadtoIOBuffer (buffer, host[0].stdout); 22 22 FlushIOBuffer (buffer); 23 24 23 ReadtoIOBuffer (buffer, host[0].stderr); 25 24 FlushIOBuffer (buffer);
Note:
See TracChangeset
for help on using the changeset viewer.
