blob: 523b14adc0e4ce1d83d3a52f500dcffda4318b8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* ISC license. */
/* MT-unsafe */
#include <signal.h>
#include <skalibs/sig.h>
void sig_restoreto (sigset_t const *set, unsigned int n)
{
register unsigned int i = 1 ;
for (; i <= n ; i++)
{
register int h = sigismember(set, i) ;
if (h < 0) continue ;
if (h) sig_restore(i) ;
}
}
|