IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 23, 2004, 7:35:29 AM (22 years ago)
Author:
eugene
Message:

fixed incorrect exit on non-tty

File:
1 edited

Legend:

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

    r2598 r2800  
    1818
    1919    line = readline (prompt);
    20     if (line == NULL) {
     20    if (line == NULL) {
     21      if (!isatty (STDIN_FILENO)) exit (2);
    2122      fprintf (stdout, "Use \"quit\" to exit\n");
    2223      Nbad ++;
Note: See TracChangeset for help on using the changeset viewer.