diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sighook.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sighook.c b/src/sighook.c index fc0db6d..1783b83 100644 --- a/src/sighook.c +++ b/src/sighook.c @@ -671,6 +671,10 @@ void sigunhook(struct sighook *hook) { } int sigreset(void) { + if (!load(&initialized, acquire)) { + return 0; + } + for_rcu (struct sigsave, save, &saved) { if (sigaction(save->sig, &save->action, NULL) != 0) { return -1; |