From d9a0004b62fe76e69cb6f4ac21d673a03e1b97fe Mon Sep 17 00:00:00 2001 From: scottl Date: Sat, 28 Feb 2004 07:50:42 +0000 Subject: In the case of a background fsck, periodically update the process title with a progress update. --- sbin/fsck_ffs/pass1.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sbin/fsck_ffs/pass1.c') diff --git a/sbin/fsck_ffs/pass1.c b/sbin/fsck_ffs/pass1.c index 341d027..258aeee 100644 --- a/sbin/fsck_ffs/pass1.c +++ b/sbin/fsck_ffs/pass1.c @@ -107,6 +107,11 @@ pass1(void) c * 100 / sblock.fs_ncg); got_siginfo = 0; } + if (got_sigalarm) { + setproctitle("%s p1 %d%%", cdevname, + c * 100 / sblock.fs_ncg); + got_sigalarm = 0; + } /* * If we are using soft updates, then we can trust the * cylinder group inode allocation maps to tell us which -- cgit v1.1