Changeset 19789
- Timestamp:
- Sep 30, 2008, 10:22:33 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/lib.shell/multicommand.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.shell/multicommand.c
r18127 r19789 3 3 static int server = 0; 4 4 static int bufferPending = FALSE; 5 6 #define MSG_TIMEOUT 30.0 5 7 6 8 int getServer () { … … 93 95 94 96 // receive the command exit status 95 if (ExpectMessage (server, 10.0, &message)) {97 if (ExpectMessage (server, MSG_TIMEOUT, &message)) { 96 98 switch (errno) { 97 99 case EPIPE: … … 108 110 109 111 // receive the resulting stderr 110 if (ExpectMessage (server, 10.0, &message)) {112 if (ExpectMessage (server, MSG_TIMEOUT, &message)) { 111 113 switch (errno) { 112 114 case EPIPE: … … 123 125 124 126 // receive the resulting stdout 125 if (ExpectMessage (server, 10.0, &message)) {127 if (ExpectMessage (server, MSG_TIMEOUT, &message)) { 126 128 switch (errno) { 127 129 case EPIPE:
Note:
See TracChangeset
for help on using the changeset viewer.
