monitor-fsck-progress — monitor the progress of one or more fscks
monitor-fsck-progress
monitor-fsck-progress expects file descriptor 3 to be a socket that has been set up with local-stream-socket-listen(1) or tcp-socket-listen(1) to listen for incoming (local or TCP/IP) socket connections. It loops forever, accepting socket connections and (for each such connection) listening for progress reports generated by fsck(8).
It displays, on the terminal connected to its standard output, progress bars for all client instances of fsck. There is one progress bar per currently connected client. It uses wide-character ncurses (sometimes a.k.a. ncursesw) to create the progress bars, switching to cursor-addressing mode (and the alternate screen buffer, if there is one) when the number of clients rises above zero and switching back when it drops back to zero.
monitor-fsck-progress is the meat of the monitor-fsck-progress
service, which directs its output to /dev/console
.