From: Trond Myklebust Subject: Re: filesystem signal handling Date: Wed, 28 Apr 2004 15:43:57 -0400 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <1083181437.2856.109.camel@lade.trondhjem.org> References: <1083097744.4780.20.camel@stevef95.austin.ibm.com> <1083165278.4694.12.camel@localhost.localdomain> <1083171946.2856.63.camel@lade.trondhjem.org> <1083172459.4694.27.camel@localhost.localdomain> <1083173539.2856.90.camel@lade.trondhjem.org> <20040428192835.GA2836@mail.shareable.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: David Woodhouse , Steve French , linux-fsdevel@vger.kernel.org Return-path: Received: from dh132.citi.umich.edu ([141.211.133.132]:33161 "EHLO lade.trondhjem.org") by vger.kernel.org with ESMTP id S261764AbUD1ToB (ORCPT ); Wed, 28 Apr 2004 15:44:01 -0400 To: Jamie Lokier In-Reply-To: <20040428192835.GA2836@mail.shareable.org> List-Id: linux-fsdevel.vger.kernel.org On Wed, 2004-04-28 at 15:28, Jamie Lokier wrote: > Trond Myklebust wrote: > > As for SIGINT vs SIGKILL - the only difference I can see is that the > > former can be generated directly from the keyboard. > > The other difference is that SIGINT can be intercepted by the > application to do cleanups or whatever; SIGKILL cannot. Right, but we explicitly mask signals if the handler is not set to SIG_DFL. I must admit that I'm unclear as to the full reason why we do that, but I guess that at least part of the problem is that we're not going to be reentrant if the handler decides to ignore the signal. Cheers, Trond