mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-15 19:16:08 +07:00
logind: simplify session_activate() a bit
This commit is contained in:
parent
abc5bbc6f0
commit
129eebe020
@ -324,7 +324,6 @@ finish:
|
||||
|
||||
int session_activate(Session *s) {
|
||||
int r;
|
||||
Session *old_active;
|
||||
|
||||
assert(s);
|
||||
|
||||
@ -343,10 +342,7 @@ int session_activate(Session *s) {
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
old_active = s->seat->active;
|
||||
s->seat->active = s;
|
||||
|
||||
return seat_apply_acls(s->seat, old_active);
|
||||
return seat_set_active(s->seat, s);
|
||||
}
|
||||
|
||||
static int session_link_x11_socket(Session *s) {
|
||||
|
@ -299,6 +299,8 @@ static int user_create_cgroup(User *u) {
|
||||
static int user_start_service(User *u) {
|
||||
assert(u);
|
||||
|
||||
/* FIXME: Fill me in later ... */
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user