IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16347


Ignore:
Timestamp:
Feb 6, 2008, 5:16:46 PM (18 years ago)
Author:
eugene
Message:

adjusted trap for runaway pclient / crashed pcontrol

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pclient/ChildOps.c

    r12840 r16347  
    4040  gettimeofday (&now, (void *) NULL);
    4141  dtime = 1e6*DTIME (now, last);
    42   if (dtime < 100) {
     42  if (dtime < 50) {
    4343    Nbad ++;
    44     if (Nbad > 10) exit (2);
     44    if (Nbad > 100) {
     45      gprint (GP_ERR, "serious IO error\n");
     46      abort ();
     47    }
    4548  }
    4649  if (dtime > 950) Nbad = 0;
     
    5457    case -2:  /* error in read (programming error?  system level error?) */
    5558      gprint (GP_ERR, "serious IO error\n");
    56       exit (2);
     59      abort ();
    5760    case -1:  /* no data in pipe */
    5861      break;
     
    6972    case -2:  /* error in read (programming error?  system level error?) */
    7073      gprint (GP_ERR, "serious IO error\n");
    71       exit (2);
     74      abort ();
    7275    case -1:  /* no data in pipe */
    7376      break;
Note: See TracChangeset for help on using the changeset viewer.