Use pipe() instead of socketpair() in sshd when communicating

with the client.
This allows ppp/ssh style tunnels to function again.

Ok'd by:	markk
Submitted by:	markk@knigma.org
This commit is contained in:
Brian Somers 2000-03-24 15:39:37 +00:00
parent 9e77ff8964
commit 727214e9b8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58531

View File

@ -63,8 +63,10 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
/* /*
* Define this to use pipes instead of socketpairs for communicating with the * Define this to use pipes instead of socketpairs for communicating with the
* client program. Socketpairs do not seem to work on all systems. * client program. Socketpairs do not seem to work on all systems.
* Although pipes are bi-directional in FreeBSD, using pipes here will
* make <stdin> uni-directional !
*/ */
#define USE_PIPES 1 /* #define USE_PIPES 1 */
#if defined(__FreeBSD__) && __FreeBSD__ <= 3 #if defined(__FreeBSD__) && __FreeBSD__ <= 3
/* /*