]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: in --user mode, report READY=1 as soon as basic.target is reached (#7102)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 24 Oct 2017 12:48:54 +0000 (14:48 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 24 Oct 2017 12:48:54 +0000 (14:48 +0200)
commit0c2826c60c508a0300f9978ae3818d6f4c00d53a
tree02271389e3b7b12ccb7d1a2e0f2ba75a992ee1b1
parente0237035a0d68bb748be767f9c241601db5c4cdc
core: in --user mode, report READY=1 as soon as basic.target is reached (#7102)

When a user logs in, systemd-pam will wait for the user manager instance to
report readiness. We don't need to wait for all the jobs to finish, it
is enough if the basic startup is done and the user manager is responsive.

systemd --user will now send out a READY=1 notification when either of two
conditions becomes true:
- basic.target/start job is gone,
- the initial transaction is done.

Also fixes #2863.
TODO
src/core/manager.c
src/core/manager.h