Changeset 3211 for trunk/Ohana/src/opihi/lib.shell/opihi.c
- Timestamp:
- Feb 13, 2005, 6:49:20 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/lib.shell/opihi.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.shell/opihi.c
r2800 r3211 6 6 int i, Nbad, Nlist, status; 7 7 char **list, *line, *outline, *prompt, *history; 8 pid_t ppid; 8 9 9 10 initialize (argc, argv); … … 19 20 line = readline (prompt); 20 21 if (line == NULL) { 22 23 ppid = getppid(); 24 if (ppid == 1) { 25 fprintf (stderr, "caught parent shutdown\n"); 26 exit (2); 27 } 21 28 if (!isatty (STDIN_FILENO)) exit (2); 22 29 fprintf (stdout, "Use \"quit\" to exit\n");
Note:
See TracChangeset
for help on using the changeset viewer.
