From owner-freebsd-stable@FreeBSD.ORG Mon Aug 23 11:37:12 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3D0410656A8; Mon, 23 Aug 2010 11:37:11 +0000 (UTC) (envelope-from delphij@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9E1A88FC0C; Mon, 23 Aug 2010 11:37:11 +0000 (UTC) Received: by ywt2 with SMTP id 2so661726ywt.13 for ; Mon, 23 Aug 2010 04:37:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=2stJMf7U++BEQ+AJvyAlqdCx3Pr/hrqLgw4GN9pfNzI=; b=uhXT45H3HnArzjsoEKjxlpLfw6+0cz33YzJrVlLhN3PHDTs+cTlBLwH7zpNXbP2gE7 xhfBRgg9UVIJk73xH+5ujHfsE9KVEikxhyX50eTdm7AdbM47CYLlMugakk/05rcGrJj9 BEU+v+1PFqqkjNz1GkuH6klBKW46Fy1UpubI4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=bs3NKhZUjGNq3QCpmgGDMdGYD8sJYxPY2gkScfOEM8bQtU1rz66qCYlAbt8/d596fg 4jMplMYvYtXHpHHVLzmEF9Lf6znkjrhWgJounMwHnu11qZcIxJu12lmqvi9VmOnp0t5e aNQNq2LnTBuJe+/0N7NTh9goqV4+OBQjpXBQE= MIME-Version: 1.0 Received: by 10.90.84.1 with SMTP id h1mr3225192agb.138.1282561667382; Mon, 23 Aug 2010 04:07:47 -0700 (PDT) Received: by 10.231.146.10 with HTTP; Mon, 23 Aug 2010 04:07:47 -0700 (PDT) In-Reply-To: <20100823103412.GA21044@icarus.home.lan> References: <20100823103412.GA21044@icarus.home.lan> Date: Mon, 23 Aug 2010 04:07:47 -0700 Message-ID: From: Xin LI To: Jeremy Chadwick Content-Type: text/plain; charset=UTF-8 Cc: freebsd-stable@freebsd.org, phk@freebsd.org Subject: Re: Watchdog not being disabled while dumping core X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Aug 2010 11:37:12 -0000 On Mon, Aug 23, 2010 at 3:34 AM, Jeremy Chadwick wrote: > PR bin/145183, opened in 2010 (not sure if this is the same): > http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/145183 Speaking for this I think we can do it by issuing an explicit watchdog(8) command on shutdown (like, set the timeout to several minutes) in /etc/rc.d/watchdog's shutdown section. This would be trivial to implement. Additionally, I'd personally think init(8) should be taught about watchdog facility. For panics, I think we should have the disk driver to "pat" watchdog rather than disabling it in their write success callback? Another thing is that ddb should be able to disable watchdog when it's waiting for keyboard input (or received first user input) I think. Cheers, -- Xin LI http://www.delphij.net