IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 13, 2008, 5:53:35 PM (18 years ago)
Author:
eugene
Message:

unique exit codes

File:
1 edited

Legend:

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

    r13720 r16472  
    5858    status = execvp (argv[0], argv);
    5959    gprint (GP_ERR, "error starting remote shell process\n");
    60     pcontrol_exit (1);
     60    pcontrol_exit (60);
    6161  }
    6262  free (argv);
     
    122122  if ((result == -1) && (errno != ECHILD)) {
    123123    gprint (GP_ERR, "unexpected error from waitpid (%d): programming error\n", errno);
    124     pcontrol_exit (1);
     124    pcontrol_exit (61);
    125125  }
    126126  if (result == 0) {
     
    130130    if (result != pid) {
    131131      gprint (GP_ERR, "waitpid error: mis-matched PID (%d vs %d).  programming error\n", result, pid);
    132       pcontrol_exit (1);
     132      pcontrol_exit (62);
    133133    }
    134134    if (WIFSTOPPED(waitstatus)) {
    135135      gprint (GP_ERR, "waitpid returns 'stopped': programming error\n");
    136       pcontrol_exit (1);
     136      pcontrol_exit (63);
    137137    }
    138138  }
Note: See TracChangeset for help on using the changeset viewer.