signal-util: generalize sigaction_nop_nocldstop
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user