From owner-freebsd-hackers@FreeBSD.ORG Wed May 19 19:49:35 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4494A106566B for ; Wed, 19 May 2010 19:49:35 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx22.fluidhosting.com [204.14.89.5]) by mx1.freebsd.org (Postfix) with ESMTP id DA98A8FC1D for ; Wed, 19 May 2010 19:49:34 +0000 (UTC) Received: (qmail 8973 invoked by uid 399); 19 May 2010 19:49:34 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 19 May 2010 19:49:34 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4BF440CC.1000007@FreeBSD.org> Date: Wed, 19 May 2010 12:49:32 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.9) Gecko/20100330 Thunderbird/3.0.4 MIME-Version: 1.0 To: deeptech71@gmail.com References: <4BF43774.4060303@gmail.com> In-Reply-To: <4BF43774.4060303@gmail.com> X-Enigmail-Version: 1.0.1 OpenPGP: id=1A1ABC84 Content-Type: multipart/mixed; boundary="------------040003030107080308070506" Cc: Lucius Windschuh , freebsd-hackers@freebsd.org Subject: Re: boot process gets weirdly interrupted when using scroll lock X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 May 2010 19:49:35 -0000 This is a multi-part message in MIME format. --------------040003030107080308070506 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 05/19/10 12:09, deeptech71@gmail.com wrote: > [Topic moved away from freebsd-current as the problem doesn't seem to be > -CURRENT-specific, and I think there's a larger crowd here :).] > > This may give a hint. The following patch resolves the 60-second idling > issue. > --- bgfuck 2010-05-19 20:23:50.000000000 +0200 > +++ bgfsck 2010-05-19 20:23:40.000000000 +0200 > @@ -34,7 +34,7 @@ > check_startmsgs && echo "${bgfsck_msg}." > fi > > - (sleep ${background_fsck_delay}; nice -4 fsck -B -p) 2>&1 | \ > + (sleep 1; You can accomplish the same thing by simply setting that variable to 1 in /etc/rc.conf. > nice -4 fsck -B -p) 2>&1 | \ > logger -p daemon.notice -t fsck & > } > > So sleep is foregrounded or something? I missed the original thread, sorry, but looking at the current state of the code it's unclear to me why the close-paren is located where it is. Can you try the attached patch and let us know if it works for you? Doug -- ... and that's just a little bit of history repeating. -- Propellerheads Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ --------------040003030107080308070506 Content-Type: text/plain; name="bgfsck.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bgfsck.diff" Index: bgfsck =================================================================== --- bgfsck (revision 208310) +++ bgfsck (working copy) @@ -34,8 +34,8 @@ check_startmsgs && echo "${bgfsck_msg}." fi - (sleep ${background_fsck_delay}; nice -4 fsck -B -p) 2>&1 | \ - logger -p daemon.notice -t fsck & + (sleep ${background_fsck_delay}; nice -4 fsck -B -p 2>&1 | \ + logger -p daemon.notice -t fsck) & } load_rc_config $name --------------040003030107080308070506--