IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 13, 2005, 6:49:20 PM (21 years ago)
Author:
eugene
Message:

pcontrol dev

File:
1 edited

Legend:

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

    r2800 r3211  
    66  int i, Nbad, Nlist, status;
    77  char **list, *line, *outline, *prompt, *history;
     8  pid_t ppid;
    89
    910  initialize (argc, argv);
     
    1920    line = readline (prompt);
    2021    if (line == NULL) {
     22     
     23      ppid = getppid();
     24      if (ppid == 1) {
     25        fprintf (stderr, "caught parent shutdown\n");
     26        exit (2);
     27      }
    2128      if (!isatty (STDIN_FILENO)) exit (2);
    2229      fprintf (stdout, "Use \"quit\" to exit\n");
Note: See TracChangeset for help on using the changeset viewer.