From owner-freebsd-stable Sun Feb 11 11:40:21 2001 Delivered-To: freebsd-stable@freebsd.org Received: from earth.backplane.com (earth-nat-cw.backplane.com [208.161.114.67]) by hub.freebsd.org (Postfix) with ESMTP id F3B5237B401 for ; Sun, 11 Feb 2001 11:40:18 -0800 (PST) Received: (from dillon@localhost) by earth.backplane.com (8.11.1/8.9.3) id f1BJdpC33248; Sun, 11 Feb 2001 11:39:51 -0800 (PST) (envelope-from dillon) Date: Sun, 11 Feb 2001 11:39:51 -0800 (PST) From: Matt Dillon Message-Id: <200102111939.f1BJdpC33248@earth.backplane.com> To: "Brandon S. Allbery KF8NH" Cc: Barney Wolff , Blaz Zupan , Andrew.Hodgkins@hurlburt.af.mil, kstewart@urx.com, freebsd-stable@FreeBSD.ORG Subject: Re: RE: Proposed makewhatis perl script fix References: <23180000.981905303@pyanfar.ece.cmu.edu> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG From the signal() manual page: When a process which has installed signal handlers forks, the child pro- cess inherits the signals. All caught signals may be reset to their de- fault action by a call to the execve(2) function; ignored signals remain ignored. So I would say that it is definitely ssh that is changing the SIGPIPE methodology. gunzip must be exiting without generating an error message with SIGPIPE is SIG_DFL. If gunzip were ever to catch the signal and report it, though, we will wind up with the errors popping up again, even if we fix ssh. For now I think ssh should be fixed. -Matt :On Sunday, February 11, 2001 03:41:48 -0500, Barney Wolff : wrote: :+----- :| Er, could it possibly be that telnet has been hiding the error :| all along? It's really, really hard to see how ssh could :| *create* this sort of error. :+--->8 : :Someone mentioned earlier that sshd seemed to be setting SIGPIPE to SIG_IGN :in the child shell; that would lead to subprocesses getting EPIPE instead :of SIGPIPE, and typically the application reports the former and tar's :parent the latter, so the new error behavior would be expected. : :-- :brandon s. allbery [os/2][linux][solaris][japh] allbery@kf8nh.apk.net :system administrator [WAY too many hats] allbery@ece.cmu.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message