From owner-freebsd-current Sun Feb 25 12: 8:48 2001 Delivered-To: freebsd-current@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id A0BD037B4EC for ; Sun, 25 Feb 2001 12:08:45 -0800 (PST) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id f1PK8fJ11071; Sun, 25 Feb 2001 12:08:41 -0800 (PST) Date: Sun, 25 Feb 2001 12:08:41 -0800 From: Alfred Perlstein To: Martin Blapp Cc: dillon@earth.backplane.com, current@freebsd.org Subject: Re: some proposals about nfsd(8) Message-ID: <20010225120841.W8663@fw.wintelcom.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from mb@imp.ch on Sun, Feb 25, 2001 at 08:44:28PM +0100 X-all-your-base: are belong to us. Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Martin Blapp [010225 11:44] wrote: > > Hi, > > nfsd.c has the following lines: > > (void)signal(SIGQUIT, SIG_IGN); > (void)signal(SIGTERM, SIG_IGN); > > So nfsd(8) can only be killed by -9. Does this make > sense ? Unregistering withing rpcbind or portmap is > not possible, so one has to kill portmap(8) or rpcbind(8) > and restart all the rpc services which had registered > themself within portmapper. Very very bad. Well, I would check the CVS logs to see why it had been done, if it came like that from 4.4BSD then we should change it, but otherwise consider why it was added. > This also rises some questions about 'nfsd -r'. This > flag is used to reregister an existing nfsd within > portmapper or rpcbind. But since we use 'nfsd -h' > to allow nfsd to bind to one or more IP's, it's > broken for some part cause the wrong addresses get > registered. It's better to kill nfsd and restart > it. > > So my first proposal is to remove the SIG_IGN lines and > adding a signal handler for unregistering nfs within > portmapper or rpcbind. > > Second, I'd like to have this 'nfsd -r' removed, cause > it's broken in the concept anyway and useless. Kill nfsd and > restart does the same, and the binding is done the right way. I'd like to kill 'nfsd -r' however it makes more sense to fix -r so that it works with -h than to just remove the functionality. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message