Date: Tue, 20 Mar 2001 12:59:34 -0500 (EST) From: Robert Watson <rwatson@FreeBSD.org> To: Ian Dowse <iedowse@FreeBSD.org> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/reboot reboot.c Message-ID: <Pine.NEB.3.96L.1010320125556.77684D-100000@fledge.watson.org> In-Reply-To: <200103201722.f2KHMnY75039@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1010320125556.77684D-100000>