On Mon, Dec 11, 2000 at 01:20:14PM -0500, Patrick Doyle wrote: >So far, the most elegant solution I have come up with is to reimplement >'select()' so that it calls 'ReadFileEx()' with a suitable 'OVERLAPPED' >structure, thus eliminating the separate thread that wakes up every 10 >ms. Of course, if I read a byte from the pipe, I would have to buffer >it somewhere and fix 'read()' so that it checks for the "readahead" byte >first, but that is basically solvable. If the call to 'select()' >returned for some other reason (i.e. another fd was made ready), then >call 'CancelIo()' to terminate the asynchronous read. I'm pretty sure that overlapped I/O does not work with any flavor of pipe. It should be possible to make a simple test case, to verify though. cgf -- Want to unsubscribe from this list? Send a message to [EMAIL PROTECTED]
- Re: Why does scp leave ssh running? -- select() neve... Christopher Faylor
- Re: Why does scp leave ssh running? -- select()... Patrick Doyle
- Re: Why does scp leave ssh running? -- sele... Corinna Vinschen
- Re: Why does scp leave ssh running? -- ... Patrick Doyle
- Re: Why does scp leave ssh running? -- sele... Patrick Doyle
- Re: Why does scp leave ssh running? -- ... Christopher Faylor
- Re: Why does scp leave ssh running?... Patrick Doyle
- Re: Why does scp leave ssh run... Christopher Faylor
- Re: Why does scp leave ssh run... Corinna Vinschen
- Re: Why does scp leave ssh run... Patrick Doyle
- Re: Why does scp leave ssh run... Christopher Faylor
- Re: Why does scp leave ssh run... Patrick Doyle
- Re: Why does scp leave ssh run... Christopher Faylor
- Re: Why does scp leave ssh run... Patrick Doyle
- Re: Why does scp leave ssh run... Ehud Karni
- Re: Why does scp leave ssh run... Patrick Doyle
- Re: Why does scp leave ssh run... David Starks-Browning
