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/lib.shell/opihi.c

    r14449 r16472  
    1717  Nbad = 0;
    1818  while (1) {  /** must exit with command "exit" or "quit" */
    19     if (Nbad == 10) exit (3);
     19    if (Nbad == 10) exit (20);
    2020
    2121    line = readline (prompt);
     
    2626      if (ppid == 1) {
    2727        gprint (GP_ERR, "caught parent shutdown\n");
    28         exit (2);
     28        exit (21);
    2929      }
    30       if (!isatty (STDIN_FILENO)) exit (2);
     30      if (!isatty (STDIN_FILENO)) exit (21);
    3131      gprint (GP_LOG, "Use \"quit\" to exit\n");
    3232      Nbad ++;
Note: See TracChangeset for help on using the changeset viewer.