Changeset 491 for trunk/src/sh_sub.c


Ignore:
Timestamp:
Oct 31, 2015, 10:36:55 PM (9 years ago)
Author:
katerina
Message:

Fix for ticket #389 (libwrap) and #390 (update on FreeBSD).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_sub.c

    r481 r491  
    184184           */
    185185          act.sa_handler = SIG_DFL;
    186           for (i = 0; i < NSIG; ++i)
     186          act.sa_flags   = 0;
     187          sigemptyset( &act.sa_mask );
     188         
     189          for (i = 1; i < NSIG; ++i)
    187190            sigaction(i, &act, NULL);
    188191          SH_SETSIGMASK(SIG_UNBLOCK, &signal_set_new, NULL);
Note: See TracChangeset for help on using the changeset viewer.