]> git.ipfire.org Git - thirdparty/systemd.git/commit
login: keep user->slice constant
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 29 Sep 2015 09:03:04 +0000 (11:03 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Mon, 16 Nov 2015 14:34:41 +0000 (15:34 +0100)
commit6230bf750a4c41ff9a7ec291243fc92b059e896b
tree3ce72f1afb4561afb23cf091bcbbbcc9806d73fc
parentf9e4283df30ad8916878396da449b2e38656b6f7
login: keep user->slice constant

Currently, we allocate user->slice when starting a slice, but we never
release it. This is incompatible if we want to re-use a user object once
it was stopped. Hence, make sure user->slice is allocated statically on
the user object and use "u->started || u->stopping" as an indication
whether the slice is actually available on pid1 or not.
src/login/logind-user.c