From: cgf AT bbc DOT com (Christopher Faylor) Subject: Dup2 fix 28 Feb 1998 20:06:34 -0800 Message-ID: Reply-To: cgf AT bbc DOT com To: cygwin32-developers AT cygnus DOT com I was surprised to find zsh stopped working with the release version of B19. The reason is that it does an fdopen(..., "w+") on a file handle that has been duped. Unfortunately, cygwin didn't preserve the settings file handles across a dup. Apparently fdopen is now checking this more stringently. patch from cgf AT bbc DOT com (Christopher Faylor) * pipe.cc (dup2): Ensure that an fd's flags are duplicated along with the fd itself. begin 664 dupfix.gz M'XL(```````"`XV/P6Z#,!!$S^4KIC=`,3%NB8`J'/L#Z:VJ*@(V02*NA;&B M*.J_QS:H%;?L:37[9F3T\"*S0N#DP*@-8HAM"/\ M#*UH-XZ"Y!?11G9Z"YX!C'PRH\3YJOD AT 2'4ZURJ9?8MGYM^LX==?Z!(RV(X\ MF."DD6OL'PCQO$#H^&H/&GD%*^>GA[^2$ZDTG[[%4'<:X8KP6SW1_1/1LG_Y ..V$;,3]T!9,Z67*H!```/ ` end -- http://www.bbc.com/ cgf AT bbc DOT com "Strange how unreal VMS=>UNIX Solutions Boston Business Computing the real can be."