chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
journalctl: add --user-unit= switch
[elogind.git]
/
src
/
login
/
logind.c
diff --git
a/src/login/logind.c
b/src/login/logind.c
index ed0b7489b9a780a51c5a0f5e72a99907362a92c2..bb34a7f362da421e70183cf6a93cc1a1811012dc 100644
(file)
--- a/
src/login/logind.c
+++ b/
src/login/logind.c
@@
-461,7
+461,7
@@
int manager_enumerate_devices(Manager *m) {
goto finish;
}
goto finish;
}
- r = udev_enumerate_add_match_tag(e, "
seat-master
");
+ r = udev_enumerate_add_match_tag(e, "
master-of-seat
");
if (r < 0)
goto finish;
if (r < 0)
goto finish;
@@
-1293,7
+1293,7
@@
static int manager_connect_udev(Manager *m) {
if (!m->udev_seat_monitor)
return -ENOMEM;
if (!m->udev_seat_monitor)
return -ENOMEM;
- r = udev_monitor_filter_add_match_tag(m->udev_seat_monitor, "
seat-master
");
+ r = udev_monitor_filter_add_match_tag(m->udev_seat_monitor, "
master-of-seat
");
if (r < 0)
return r;
if (r < 0)
return r;
@@
-1463,7
+1463,7
@@
int manager_dispatch_idle_action(Manager *m) {
r = manager_get_idle_hint(m, &since);
if (r <= 0)
r = manager_get_idle_hint(m, &since);
if (r <= 0)
- /* Not idle. Let's check if after a timeout it
it
might be idle then. */
+ /* Not idle. Let's check if after a timeout it might be idle then. */
timespec_store(&its.it_value, n + m->idle_action_usec);
else {
/* Idle! Let's see if it's time to do something, or if
timespec_store(&its.it_value, n + m->idle_action_usec);
else {
/* Idle! Let's see if it's time to do something, or if
@@
-1628,11
+1628,11
@@
int manager_run(Manager *m) {
manager_gc(m, true);
manager_gc(m, true);
- if (m->
delayed_unit
) {
+ if (m->
action_what != 0
) {
usec_t x, y;
x = now(CLOCK_MONOTONIC);
usec_t x, y;
x = now(CLOCK_MONOTONIC);
- y = m->
delayed
_timestamp + m->inhibit_delay_max;
+ y = m->
action
_timestamp + m->inhibit_delay_max;
msec = x >= y ? 0 : (int) ((y - x) / USEC_PER_MSEC);
}
msec = x >= y ? 0 : (int) ((y - x) / USEC_PER_MSEC);
}