IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14284


Ignore:
Timestamp:
Jul 18, 2007, 8:44:42 AM (19 years ago)
Author:
eugene
Message:

force interrupt after 3 (not 10) SIGINTs

File:
1 edited

Legend:

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

    r7917 r14284  
    1515  Nask = 0;
    1616  Nint ++;
    17   if (Nint > 10) {
     17
     18  // 3 ctrl-c in a row will interrupt regardless
     19  if (Nint > 3) {
    1820    interrupt = TRUE;
    1921    return;
     
    4143    }
    4244    Nask ++;
    43     if (Nask > 10) {
     45    if (Nask > 3) {
    4446      interrupt = TRUE;
    4547      signal (SIGINT, handle_interrupt);
Note: See TracChangeset for help on using the changeset viewer.