From owner-freebsd-stable Sun Feb 11 5:37:14 2001 Delivered-To: freebsd-stable@freebsd.org Received: from kline-station.ckdhr.com (kline-station.ckdhr.com [209.58.172.141]) by hub.freebsd.org (Postfix) with SMTP id 61CF037B401 for ; Sun, 11 Feb 2001 05:37:11 -0800 (PST) Received: (qmail 17155 invoked by uid 139); 11 Feb 2001 13:37:09 -0000 To: Barney Wolff Cc: Blaz Zupan , Matt Dillon , Andrew.Hodgkins@hurlburt.af.mil, kstewart@urx.com, freebsd-stable@FreeBSD.ORG Subject: Re: Proposed makewhatis perl script fix References: <200102110819.f1B8Jk430590@earth.backplane.com> <20010211034147.A51972@pit.databus.com> X-Face: I8Alb*-ZdjN\/8k_QR,^l^m6GQB'S-B:}DVP].1HOw#tx:TX$k;Wl;4zqjWR|-jheM#? &beRf(!|0b0m=M~=%.Am>"QEY.(#Ys.%"s?z,hmwp&y0%p>9+T X-Attribution: ckd Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII From: Christopher K Davis Date: 11 Feb 2001 08:37:09 -0500 In-Reply-To: Barney Wolff's message of "Sun, 11 Feb 2001 03:41:48 -0500" Message-ID: Lines: 46 X-Mailer: Gnus v5.6.44/XEmacs 20.4 - "Emerald" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Barney Wolff writes: > 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. Try the following patch (which I dug up off the Web after the previous go-round on this problem). It seems to work. (The indentation is wrong, I know. I had to apply the patch -l because the HTMLization of the original mail message hosed the whitespace.) --- /usr/src/crypto/openssh/session.c Sun Feb 4 10:01:29 2001 +++ /usr/src/crypto/openssh/session.c.PIPE_PATCH Sun Feb 4 10:01:58 2001 @@ -448,8 +448,6 @@ if (s == NULL) fatal("do_exec_no_pty: no session"); - signal(SIGPIPE, SIG_DFL); - session_proctitle(s); #ifdef USE_PAM @@ -461,6 +459,8 @@ /* Child. Reinitialize the log since the pid has changed. */ log_init(__progname, options.log_level, options.log_facility, log_stderr); + signal(SIGPIPE, SIG_DFL); + /* * Create a new session and process group since the 4.4BSD * setlogin() affects the entire process group. @@ -569,6 +569,8 @@ if ((pid = fork()) == 0) { /* Child. Reinitialize the log because the pid has changed. */ log_init(__progname, options.log_level, options.log_facility, log_stderr); + + signal(SIGPIPE, SIG_DFL); /* Close the master side of the pseudo tty. */ close(ptyfd); -- Christopher Davis * * Put location information in your DNS! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message