As i was continuing my struggle to see what's wrong with the ACPI support on my new ThinkPad X31, i was forced to do many reboots, and unfortunately some of them unclean. And as i was watching the 'ps' output for the progress indicator for the backgrounds fsck, at the moment that the fsck program entered p5 (pass5) there was "\n" appended to the proctitle output, immediately after the percent sign. I suppose this little patch will fix this, but i don't know if it is appropriate for a PR to be filed about such minor problem? P.S.: I'm running -CURRENT as of yesterday. ---------------------------------------------------------------- --- src/sbin/fsck_ffs/pass5.c.orig Tue Mar 30 21:02:22 2004 +++ src/sbin/fsck_ffs/pass5.c Tue Mar 30 21:02:40 2004 _at__at_ -158,7 +158,7 _at__at_ got_siginfo = 0; } if (got_sigalarm) { - setproctitle("%s p5 %d%%\n", cdevname, + setproctitle("%s p5 %d%%", cdevname, c * 100 / sblock.fs_ncg); got_sigalarm = 0; } ------------------------------------------------------------------- -- Regards, Niki Denev
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:49 UTC