Changeset 16472 for trunk/Ohana/src/opihi/lib.shell/opihi.c
- Timestamp:
- Feb 13, 2008, 5:53:35 PM (18 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
r14449 r16472 17 17 Nbad = 0; 18 18 while (1) { /** must exit with command "exit" or "quit" */ 19 if (Nbad == 10) exit ( 3);19 if (Nbad == 10) exit (20); 20 20 21 21 line = readline (prompt); … … 26 26 if (ppid == 1) { 27 27 gprint (GP_ERR, "caught parent shutdown\n"); 28 exit (2 );28 exit (21); 29 29 } 30 if (!isatty (STDIN_FILENO)) exit (2 );30 if (!isatty (STDIN_FILENO)) exit (21); 31 31 gprint (GP_LOG, "Use \"quit\" to exit\n"); 32 32 Nbad ++;
Note:
See TracChangeset
for help on using the changeset viewer.
