Re: problem with select() - 2.4.5

2001-06-22 Thread Edgar Toernig
Thomas Speck wrote: > > tio.c_cflag = baud | CLOCAL; How about adding CREAD? Ciao, ET. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read

Re: problem with select() - 2.4.5

2001-06-22 Thread Thomas Speck
On Fri, 22 Jun 2001, Thomas Speck wrote: > > Hi ! > I have a problem with reading from a serial port using select() under > 2.4.5. What I am doing is basically the following: > > fd_set readfds; > struct timeval timeout; > int s; > > serialfd = open("/dev/ttyS0", O_RDWR ); > >

problem with select() - 2.4.5

2001-06-22 Thread Thomas Speck
Hi ! I have a problem with reading from a serial port using select() under 2.4.5. What I am doing is basically the following: fd_set readfds; struct timeval timeout; int s; serialfd = open("/dev/ttyS0", O_RDWR ); init_serial(B9600); timeout.tv_sec = 2; /* ! */ timeout.tv_usec = 0;

problem with select() - 2.4.5

2001-06-22 Thread Thomas Speck
Hi ! I have a problem with reading from a serial port using select() under 2.4.5. What I am doing is basically the following: fd_set readfds; struct timeval timeout; int s; serialfd = open(/dev/ttyS0, O_RDWR ); init_serial(B9600); timeout.tv_sec = 2; /* ! */ timeout.tv_usec = 0;

Re: problem with select() - 2.4.5

2001-06-22 Thread Thomas Speck
On Fri, 22 Jun 2001, Thomas Speck wrote: Hi ! I have a problem with reading from a serial port using select() under 2.4.5. What I am doing is basically the following: fd_set readfds; struct timeval timeout; int s; serialfd = open(/dev/ttyS0, O_RDWR ); init_serial(B9600);

Re: problem with select() - 2.4.5

2001-06-22 Thread Edgar Toernig
Thomas Speck wrote: tio.c_cflag = baud | CLOCAL; How about adding CREAD? Ciao, ET. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the