IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2800


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

fixed incorrect exit on non-tty

Location:
trunk/Ohana/src/opihi/lib.shell
Files:
2 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 ++;
  • trunk/Ohana/src/opihi/lib.shell/startup.c

    r2598 r2800  
    144144    if (ONLY_INPUT) exit (2);
    145145    if (is_script) exit (2);
    146     if (!isatty (STDIN_FILENO)) exit (2);
    147     if (!isatty (STDOUT_FILENO)) exit (2);
    148146  }
    149147}
Note: See TracChangeset for help on using the changeset viewer.