From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Dickson Subject: Re: [PATCH] -o intr mount option prevents core dumps on 2.4 kernel Date: Tue, 11 Jan 2005 15:58:09 -0500 Message-ID: <41E43DE1.5080703@RedHat.com> References: <41DD8403.7030601@RedHat.com> <1105118040.10979.70.camel@lade.trondhjem.org> <41E42AD7.3030303@RedHat.com> <1105474246.11430.1.camel@lade.trondhjem.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Cc: nfs@lists.sourceforge.net Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.12] helo=sc8-sf-mx2.sourceforge.net) by sc8-sf-list2.sourceforge.net with esmtp (Exim 4.30) id 1CoT20-0001II-KF for nfs@lists.sourceforge.net; Tue, 11 Jan 2005 12:54:24 -0800 Received: from mx1.redhat.com ([66.187.233.31]) by sc8-sf-mx2.sourceforge.net with esmtp (TLSv1:AES256-SHA:256) (Exim 4.41) id 1CoT20-00059t-0u for nfs@lists.sourceforge.net; Tue, 11 Jan 2005 12:54:24 -0800 To: Trond Myklebust In-Reply-To: <1105474246.11430.1.camel@lade.trondhjem.org> Sender: nfs-admin@lists.sourceforge.net Errors-To: nfs-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: Discussion of NFS under Linux development, interoperability, and testing. List-Post: List-Help: List-Subscribe: , List-Archive: Trond Myklebust wrote: >ty den 11.01.2005 Klokka 14:36 (-0500) skreiv Steve Dickson: > > > >>>Firstly, how is "cl_intr" preventing core dumps? Normally, we should be >>>masking all signals except SIGKILL, SIGINT and SIGQUIT. I can see that >>>masking SIGINT and SIGQUIT might be useful here, but not SIGKILL... >>> >>> >>> >>> >>Because __rpc_execute() notices that signalled() is set and aborts the >>write by >>returning -ERESTARTSYS makes the core dumping code stop dumping. >> >> > >Err... That's what the sigmask is for. signalled() only looks at those >signals that are enabled by the sigmask. > > hmm... I'll admit kernel signal process is not an area I've ventured into much so correct me if I'm wrong.... But if SIGKILL is masked off, would that stop the process from getting the signal and in turn stop the core dropping as well??? steved. ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs