From mboxrd@z Thu Jan 1 00:00:00 1970 From: Earnie Boyd To: "Michael V. Nikolaev" , cygwin users Subject: Re: [bug] Crazy I/O. Date: Wed, 31 Mar 1999 19:45:00 -0000 Message-ID: <19990308194627.22867.rocketmail@send102.yahoomail.com> X-SW-Source: 1999-03n/msg00254.html Message-ID: <19990331194500.MC2B_z7WztBRcbzyked176ofUj3Eoh8VME6veQXpGK0@z> ---"Michael V. Nikolaev" wrote: > > > -----Original Message----- > From: Earnie Boyd > To: cygwin users > Date: 8 áåðåçíÿ 1999 ð. 18:46 > Subject: [bug] Crazy I/O. > > > Hi! > > You use stdin as a _stream_ when calling gets(). So, try to call fseek(stdin, 0L, SEEK_SET) after the second dup2(). It should work. > Didn't help. Besides, it shouldn't be needed. == - \\||// -------------------o0O0--Earnie--0O0o------------------- -- earnie_boyd@yahoo.com -- -- http://www.freeyellow.com/members5/gw32/index.html -- ----------------------ooo0O--O0ooo---------------------- PS: Newbie's, you should visit my page. _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com