signal-util: generalize sigaction_nop_nocldstop

This commit is contained in:
Mike Yuan
2025-01-04 16:40:53 +01:00
parent 573e8fc217
commit bed4386e29
5 changed files with 9 additions and 17 deletions
+5
View File
@@ -302,6 +302,11 @@ const struct sigaction sigaction_default = {
.sa_flags = SA_RESTART,
};
const struct sigaction sigaction_nop_nocldstop = {
.sa_handler = nop_signal_handler,
.sa_flags = SA_NOCLDSTOP|SA_RESTART,
};
int parse_signo(const char *s, int *ret) {
int sig, r;
+1
View File
@@ -68,5 +68,6 @@ void propagate_signal(int sig, siginfo_t *siginfo);
extern const struct sigaction sigaction_ignore;
extern const struct sigaction sigaction_default;
extern const struct sigaction sigaction_nop_nocldstop;
int parse_signo(const char *s, int *ret);