73ad712fcfea5d8ba475044698d31d2c15d4180d
In similar fashion to the previous change, sync() operations can stall endlessly if cache is unable to be written out. In order to avoid an unbounded hang, the sync takes place within a child process. Every 10 seconds (SYNC_TIMEOUT_USEC), the value of /proc/meminfo "Dirty" is checked to verify it is smaller than the last iteration. If the sync is not making progress for 3 successive iterations (SYNC_PROGRESS_ATTEMPTS), a SIGKILL is sent to the sync process and the shutdown continues.
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%