IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 19, 2006, 11:48:49 AM (20 years ago)
Author:
eugene
Message:

fixed some client/server I/O issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/lib.shell/multicommand.c

    r7938 r7940  
    7070          }
    7171
     72          // receive the command exit status
     73          if (ExpectMessage (server, 2.0, &message)) {
     74            switch (errno) {
     75              case EPIPE:
     76                gprint (GP_ERR, "server connection has died\n");
     77                exit (1);
     78              default:
     79                gprint (GP_ERR, "I/O error sending server message\n");
     80                exit (2);
     81            }
     82          } else {
     83            sscanf (message.buffer, "STATUS %d", &status);
     84          }
     85
    7286          // receive the resulting stderr
    7387          if (ExpectMessage (server, 2.0, &message)) {
Note: See TracChangeset for help on using the changeset viewer.