sighold.c\signal\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/signal/sighold.c
blob: cfa2306c12992f99122d1e18c9fc47ab235c0023 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include <signal.h>
int sighold(int sig)
{
	sigset_t mask;
	sigemptyset(&mask);
	if (sigaddset(&mask, sig) < 0) return -1;
	return sigprocmask(SIG_BLOCK, &mask, 0);
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月07日 08:31:46 +0000

AltStyle によって変換されたページ (->オリジナル) /