Whamcloud - gitweb
e2fsck: close the progress_fd in the logfile child process
authorTheodore Ts'o <tytso@mit.edu>
Tue, 13 Jan 2015 00:42:29 +0000 (19:42 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 13 Jan 2015 00:42:29 +0000 (19:42 -0500)
commita4f95ccad41f5befb6768ff58fe26b179237df6a
tree5e9a9fc3b7f50ea030edb6f0cdc7cd2f3a75a1f6
parent13f450addb3c9624987e62e9978e793d874c060d
e2fsck: close the progress_fd in the logfile child process

If e2fsck.conf's logging feature is enabled, and e2fsck is being run
via systemd-fsck, there will be a deadlock since systemd-fsck is
waiting for progress_fd pipe to be closed, instead of waiting for the
fsck process to exit --- and so the logfile child process won't exit
until it can write out the logfile, and systemd won't continue the
boot process so that the file system can be remounted read-write.
Oops.

Addresses-Debian-Bug: #775234

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/logfile.c