RE: tcflush hang problem

2003-11-03 Thread H. Henning Schmidt
I am pretty certain the the problem which is discussed in this thread has already been reported in http://sources.redhat.com/ml/cygwin/2003-03/msg01529.html There is obviously an input buffer, which overflows if you keep an open filedesc. on a serial port and let some external system generate in

Re: tcflush hang problem

2003-10-13 Thread Martin Farnik
Thank for answer. I replace tcflush(fd,TCIFLUSH) by do { err = read(fd,iobuffer,1000) } while(err>0) and it work OK on Win98. I still have problem on Windows2000Sp2. It seem that it hangs in functions: tcsetattr(fd,TCSANOW,&newtio); read(fd,iobuffer,1000); write(fd,iobuffer,10); Strange thin

Re: tcflush hang problem

2003-10-13 Thread Brian Ford
Sorry, my fingers aren't working. I keep accidentally replying to the sender rather than/in addition to the list. Cygwin's current tcflush implimentation is rather crude. Although, it may not be possible to do any better. PTC. if (queue == TCIFLUSH || queue == TCIOFLUSH) /* Input flushin

tcflush hang problem

2003-10-12 Thread Martin Farnik
I forgot : #define PORT0 "/dev/ttyS0" Marty -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/

tcflush hang problem

2003-10-12 Thread Martin Farnik
Hi. I use CYGWIN_98-4.10 mine 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 uknown unknown Cygwin First i try to describe a situation: I have a device which is connected with computer thru serial line. Device is still sending data.These data isn't for my program.I have open com port and let them go into