sd-event: implicitly set signal event source's descriptions to the signal name

This commit is contained in:
Lennart Poettering
2014-11-04 18:09:19 +01:00
parent 356779df90
commit f1f00dbb7f
2 changed files with 3 additions and 8 deletions
+3
View File
@@ -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;