41bd3379efc0e5b5621c329ff55b99b2825f06c0
Let's fork off sync() ina process instead of a thread, as a safety measure. This is beneficial to ensure that the original process can exit without having to wait for the sync() to finish (note that the kernel will delay process termination until all threads finished their syscalls). In case of hanging NFS this increases the chance that PID 1 can safely transition to the "systemd-shutdown" process as the sync() is initiated early on but definitely not waited for.
…
systemd - System and Service Manager
Details
General information about systemd can be found in the systemd Wiki.
Information about build requirements are provided in the README file.
Consult our NEWS file for information about what's new in the most recent systemd versions.
Please see the HACKING file for information how to hack on systemd and test your modifications.
Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.
When preparing patches for systemd, please follow our Coding Style Guidelines.
If you are looking for support, please contact our mailing list or join our IRC channel.
Languages
C
88.5%
Shell
5.7%
Python
4.6%
Meson
1.1%