diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-06-17 23:22:56 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-06-17 23:22:56 +0200 |
commit | 7d7936059fac45b909faeb6a65dd7346e9d55378 (patch) | |
tree | 8cad82de1d843bbcface1865731e9eccbf1a8c5f /src/util.c | |
parent | e4b613402deb901741d910fc9442d6d4c1763951 (diff) |
manager: expose a few special units via SIGRTMIN+x signals
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c index 8f70c0f28a..4fdc8e57c5 100644 --- a/src/util.c +++ b/src/util.c @@ -2205,6 +2205,18 @@ void rename_process(const char name[8]) { strncpy(program_invocation_name, name, strlen(program_invocation_name)); } +void sigset_add_many(sigset_t *ss, ...) { + va_list ap; + int sig; + + assert(ss); + + va_start(ap, ss); + while ((sig = va_arg(ap, int)) > 0) + assert_se(sigaddset(ss, sig) == 0); + va_end(ap); +} + static const char *const ioprio_class_table[] = { [IOPRIO_CLASS_NONE] = "none", [IOPRIO_CLASS_RT] = "realtime", |