Changeset 12840 for trunk/Ohana/src/opihi/pcontrol/PclientCommand.c
- Timestamp:
- Apr 17, 2007, 9:59:02 AM (19 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
r10668 r12840 19 19 20 20 // flush the stdout and stderr buffers here 21 ReadtoIOBuffer (buffer, host[0].stdout );21 ReadtoIOBuffer (buffer, host[0].stdout_fd); 22 22 FlushIOBuffer (buffer); 23 ReadtoIOBuffer (buffer, host[0].stderr );23 ReadtoIOBuffer (buffer, host[0].stderr_fd); 24 24 FlushIOBuffer (buffer); 25 25 26 26 /* send command to client (adding on \n) */ 27 status = write_fmt (host[0].stdin , "%s\n", command);27 status = write_fmt (host[0].stdin_fd, "%s\n", command); 28 28 29 29 /* is pipe still open? */ … … 37 37 status = -1; 38 38 for (i = 0; (i < PCLIENT_TIMEOUT) && (status != 0) && (line == NULL); i++) { 39 status = ReadtoIOBuffer (buffer, host[0].stdout );39 status = ReadtoIOBuffer (buffer, host[0].stdout_fd); 40 40 line = memstr (buffer[0].buffer, response, buffer[0].Nbuffer); 41 41 if (status == -1) nanosleep (&request, &remain);
Note:
See TracChangeset
for help on using the changeset viewer.
