summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/signal/sigrelse.c
blob: b4c5a00f15615d3ddd8edd78eb61adfac85fe58e (plain)
1
2
3
4
5
6
7
8
9
10
#include <signal.h>

int sigrelse(int sig)
{
	sigset_t mask;

	sigemptyset(&mask);
	if (sigaddset(&mask, sig) < 0) return -1;
	return sigprocmask(SIG_UNBLOCK, &mask, 0);
}