From owner-freebsd-current Mon Aug 7 1:25:47 2000 Delivered-To: freebsd-current@freebsd.org Received: from mass.osd.bsdi.com (adsl-63-202-177-42.dsl.snfc21.pacbell.net [63.202.177.42]) by hub.freebsd.org (Postfix) with ESMTP id D591F37BD3B; Mon, 7 Aug 2000 01:25:44 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.9.3/8.9.3) with ESMTP id BAA02380; Mon, 7 Aug 2000 01:36:57 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200008070836.BAA02380@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Alfred Perlstein Cc: Stephen McKay , freebsd-current@FreeBSD.ORG, dillon@FreeBSD.ORG Subject: Re: Ugly, slow shutdown In-reply-to: Your message of "Mon, 07 Aug 2000 01:18:54 PDT." <20000807011854.Q4854@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 07 Aug 2000 01:36:57 -0700 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > * Stephen McKay [000805 08:49] wrote: > > > > Patch 2 is smaller and possibly controversial. Normally bufdaemon and > > syncer are sleeping when they are told to suspend. This delays shutdown > > by a few boring seconds. With this patch, it is zippier. I expect people > > to complain about this shortcut, but every sleeping process should expect > > to be woken for no reason at all. Basic kernel premise. > > You better bet it's controversial, this isn't "Basic kernel premise" Actually, that depends. It is definitely poor programming practice to not check the condition for which you slept on wakeup. > *boom* *crash* *ow* :) Doctor: So don't do that. In this case, the relevant processes just need to learn to check whether they've been woken in order to die. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message