IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 1, 2016, 11:34:48 AM (10 years ago)
Author:
eugene
Message:

list unused parameters; replace old signal code with SetInterrupt, ClearInterrupt; fix unsigned / signed int inconsistencies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20160226/src/opihi/lib.shell/exec_loop.c

    r12332 r39419  
    33int exec_loop (Macro *loop) {
    44
    5   void *Signal;
    65  int j, status, ThisList;
    76  char *line;
     
    1716
    1817  /* set up interrupts */
    19   Signal = signal (SIGINT, handle_interrupt);
    20   interrupt = FALSE;
     18  struct sigaction *old_sigaction = SetInterrupt();
    2119
    2220  /* process the list */
     
    3230    if (loop_break || loop_last || loop_next) break;
    3331  }
    34   signal (SIGINT, Signal);
     32  ClearInterrupt (old_sigaction);
    3533
    3634  /* free remaining lines on the list, free the list, decrement the shell level */
Note: See TracChangeset for help on using the changeset viewer.