IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16473


Ignore:
Timestamp:
Feb 14, 2008, 8:49:49 AM (18 years ago)
Author:
eugene
Message:

fix sigpipe handling

Location:
trunk/Ohana/src/opihi
Files:
2 edited

Legend:

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

    r16472 r16473  
    2525      ppid = getppid();
    2626      if (ppid == 1) {
     27        signal (SIGPIPE, SIG_IGN);
    2728        gprint (GP_ERR, "caught parent shutdown\n");
    2829        exit (21);
  • trunk/Ohana/src/opihi/pcontrol/pcontrol.c.in

    r16461 r16473  
    2121
    2222  /* set global signal masks (these apply to all threads launched below) */
    23   signal (SIGPIPE, gotsignal);
     23  signal (SIGPIPE, SIG_IGN); // must ignore SIGPIPE or we get in an infinite loop when pantasks exits
    2424  signal (SIGTSTP, gotsignal);
    2525  signal (SIGTTIN, gotsignal);
Note: See TracChangeset for help on using the changeset viewer.