chiark / gitweb /
sd-event: implicitly set signal event source's descriptions to the signal name
[elogind.git] / src / libsystemd / sd-event / sd-event.c
index f0356a48e647f90711699daf7062852c00b5a595..e856d682514f527df654add8a923b729178b80e3 100644 (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;