chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cd9e5d0
)
logind: when changing linger stetings, make sure they take place immediately
author
Lennart Poettering
<lennart@poettering.net>
Tue, 28 Jun 2011 16:16:32 +0000
(18:16 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 28 Jun 2011 17:25:08 +0000
(19:25 +0200)
src/logind-dbus.c
patch
|
blob
|
history
diff --git
a/src/logind-dbus.c
b/src/logind-dbus.c
index 320bb35efd48b38d88f07cb6e34a081859eed7db..af5176ca32bb6a1953be6fe2641ea9f18d96d6d0 100644
(file)
--- a/
src/logind-dbus.c
+++ b/
src/logind-dbus.c
@@
-928,17
+928,29
@@
static DBusHandlerResult manager_message_handler(
goto oom;
if (b) {
goto oom;
if (b) {
+ User *u;
+
r = touch(path);
free(path);
if (r < 0)
return bus_send_error_reply(connection, message, &error, r);
r = touch(path);
free(path);
if (r < 0)
return bus_send_error_reply(connection, message, &error, r);
+
+ if (manager_add_user_by_uid(m, uid, &u) >= 0)
+ user_start(u);
+
} else {
} else {
+ User *u;
+
r = unlink(path);
free(path);
if (r < 0 && errno != ENOENT)
return bus_send_error_reply(connection, message, &error, -errno);
r = unlink(path);
free(path);
if (r < 0 && errno != ENOENT)
return bus_send_error_reply(connection, message, &error, -errno);
+
+ u = hashmap_get(m->users, ULONG_TO_PTR((unsigned long) uid));
+ if (u)
+ user_add_to_gc_queue(u);
}
reply = dbus_message_new_method_return(message);
}
reply = dbus_message_new_method_return(message);