]> git.ipfire.org Git - thirdparty/systemd.git/commit
login: make user->service static
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 29 Sep 2015 09:18:46 +0000 (11:18 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Mon, 16 Nov 2015 14:34:41 +0000 (15:34 +0100)
commitb690ef12b59187074cf5a9c02a69d06fa1398789
treec3ec12aec59cc72553b0d771a88855c9ba9cb8b2
parent157f50577fbee094eb8ca18f3f0af4e82af8558f
login: make user->service static

Just like user->slice, there is no reason to store the unit name in /run,
nor should we allocate it dynamically on job instantiation/removal. Just
keep it statically around at all times and rely on user->started ||
user->stopping to figure out whether the unit exists or not.
src/login/logind-user.c