Date: Sat, 3 Mar 2001 22:28:39 -0500 From: Chris Johnson <cjohnson@palomine.net> To: stable@freebsd.org Subject: Re: more strange problem with broken pipes and ssh Message-ID: <20010303222839.A51588@palomine.net> In-Reply-To: <200103040318.TAA25378@salsa.gv.tsc.tdk.com>; from Don.Lewis@tsc.tdk.com on Sat, Mar 03, 2001 at 07:18:05PM -0800 References: <200103021433.f22EXHS61992@cwsys.cwsent.com> <200103040318.TAA25378@salsa.gv.tsc.tdk.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Qxx1br4bt0+wmkIi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 03, 2001 at 07:18:05PM -0800, Don Lewis wrote: > I'm seeing this problem with makewhatis. I believe the problem is > that sshd is setting the SIGPIPE handler to SIG_IGN, so when you > run a pipeline of processes and the reader exits early, the writer > gets an EPIPE error instead of getting silently killed with a SIGPIPE. >=20 > I believe the fix is to call "signal(SIGPIPE, SIG_DFL)" in do_exec_pty() > in session.c. >=20 > I wonder if this problem might be shell dependent. Maybe some shells > reset SIGPIPE to SIG_DFL and some don't modify whatever they inherit. > I'm seeing the problem with csh. What shells are everyone else running? bash-2.04 doesn't have this problem, but I do see the problem with csh. Chris --Qxx1br4bt0+wmkIi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE6obZlyeUEMvtGLWERAqzvAKC0TJMgfitxb3tjBdUR3Qffts4zUgCfbZkG yPqyFV/7D5HjeifGwLVX0oE= =rOkf -----END PGP SIGNATURE----- --Qxx1br4bt0+wmkIi-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010303222839.A51588>