From owner-cvs-all Tue Mar 20 10: 0:39 2001 Delivered-To: cvs-all@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id F112E37B73F; Tue, 20 Mar 2001 10:00:27 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.11.1/8.11.1) with SMTP id f2KHxYh79083; Tue, 20 Mar 2001 12:59:34 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Tue, 20 Mar 2001 12:59:34 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Ian Dowse Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/reboot reboot.c In-Reply-To: <200103201722.f2KHMnY75039@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I was reading the init source last night, and noticed that it allows 120 seconds for rc.shutdown to run, then spends 10 seconds waiting for first SIGTERM, then SIGKILL to take effect. Probably, it would be nice if these values were consistent between various programs (shutdown, init, halt...). Not sure what the "right" values are -- the ones there seem like potentially decent approximations. Robert N M Watson FreeBSD Core Team, TrustedBSD Project robert@fledge.watson.org NAI Labs, Safeport Network Services On Tue, 20 Mar 2001, Ian Dowse wrote: > iedowse 2001/03/20 09:22:48 PST > > Modified files: > sbin/reboot reboot.c > Log: > Reboot(8) normally waits 5 seconds after sending SIGTERMs to all > processes and then sends SIGKILLs. If a lot of processes are swapped > out, this delay may not be long enough, so processes such as an X > server may be killed before they have had time to clean up properly. > > Make this delay more dynamic by waiting up to 60 seconds for swap > page-in activity to end. While I'm here, ANSIfy and remove a > `register' specifier. > > Revision Changes Path > 1.10 +33 -11 src/sbin/reboot/reboot.c > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message