summaryrefslogtreecommitdiff
path: root/src/libsystemd
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-11-04 16:34:20 +0100
committerLennart Poettering <lennart@poettering.net>2014-11-04 18:09:19 +0100
commitf1f00dbb7f3741b30d4a26b1a8b65ec46ff1fde3 (patch)
treeef4ec5a8e27c5321655117ebdc65aacdbf24712c /src/libsystemd
parent356779df90a2ecab5da2cb310ad0f8ebc9ca9f46 (diff)
sd-event: implicitly set signal event source's descriptions to the signal name
Diffstat (limited to 'src/libsystemd')
-rw-r--r--src/libsystemd/sd-event/sd-event.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsystemd/sd-event/sd-event.c b/src/libsystemd/sd-event/sd-event.c
index f0356a48e6..e856d68251 100644
--- a/src/libsystemd/sd-event/sd-event.c
+++ b/src/libsystemd/sd-event/sd-event.c
@@ -1031,6 +1031,9 @@ _public_ int sd_event_add_signal(
}
}
+ /* Use the signal name as description for the event source by default */
+ (void) sd_event_source_set_description(s, signal_to_string(sig));
+
if (ret)
*ret = s;