IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 8, 2007, 11:41:36 AM (19 years ago)
Author:
eugene
Message:

catching unexpected exit calls

File:
1 edited

Legend:

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

    r13545 r13720  
    5858    status = execvp (argv[0], argv);
    5959    gprint (GP_ERR, "error starting remote shell process\n");
    60     exit (1);
     60    pcontrol_exit (1);
    6161  }
    6262  free (argv);
     
    122122  if ((result == -1) && (errno != ECHILD)) {
    123123    gprint (GP_ERR, "unexpected error from waitpid (%d): programming error\n", errno);
    124     exit (1);
     124    pcontrol_exit (1);
    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       exit (1);
     132      pcontrol_exit (1);
    133133    }
    134134    if (WIFSTOPPED(waitstatus)) {
    135135      gprint (GP_ERR, "waitpid returns 'stopped': programming error\n");
    136       exit (1);
     136      pcontrol_exit (1);
    137137    }
    138138  }
Note: See TracChangeset for help on using the changeset viewer.