chiark / gitweb /
bus: introduce concept of a "default" event loop per-thread and make use of it everywhere
[elogind.git] / src / locale / localed.c
index 7e03d82575ab0f9cd823b6644c8f4e86e4ece153..32d52a90a20a0addba53a87afcd0a5f90c446356 100644 (file)
@@ -1115,7 +1115,7 @@ int main(int argc, char *argv[]) {
                 goto finish;
         }
 
-        r = sd_event_new(&event);
+        r = sd_event_default(&event);
         if (r < 0) {
                 log_error("Failed to allocate event loop: %s", strerror(-r));
                 goto finish;