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