]> git.ipfire.org Git - thirdparty/systemd.git/commit
homed: make sure our worker processes finish before we exit
authorLennart Poettering <lennart@poettering.net>
Fri, 18 Sep 2020 16:53:12 +0000 (18:53 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 18 Sep 2020 20:35:36 +0000 (22:35 +0200)
commit9796a9fbad5bae4d66bb40d848f6245d1ee327d8
tree6c09fbd26ad56ff321102469c2de9553ca6ee154
parentcc9886bc207021fa4b0a4687f1beb88e0457d21e
homed: make sure our worker processes finish before we exit

When exiting, let's explicitly wait for our worker processes to finish
first. That's useful if unmounting of /home/ is scheduled to happen
right after homed is down, as we then can be sure that the home
directories are properly unmounted and detached by the time homed is
fully terminated (otherwise it might happen that our worker gets killed
by the service manager, thus leaving the home directory and its backing
devices up/left for auto-clean which might be async).

Likely fixes #16842
src/home/homed-home.c
src/home/homed-home.h
src/home/homed-manager.c