chiark / gitweb /
logind: process session/inhibitor fds at higher priority
[elogind.git] / src / login / logind-session.c
index 2ed6b2fa355897c6faa85ced5ecc685c9af01513..61d34d1a9bcb69a0a8bda1718b79908b6becb797 100644 (file)
@@ -962,7 +962,9 @@ int session_create_fifo(Session *s) {
                 if (r < 0)
                         return r;
 
-                r = sd_event_source_set_priority(s->fifo_event_source, SD_EVENT_PRIORITY_IDLE);
+                /* Let's make sure we noticed dead sessions before we process new bus requests (which might create new
+                 * sessions). */
+                r = sd_event_source_set_priority(s->fifo_event_source, SD_EVENT_PRIORITY_NORMAL-10);
                 if (r < 0)
                         return r;
         }