Daniel Jacobowitz wrote: > No idea. I think in GDB is OK. In that case it should probably be > encapsulated as "gdb_select". Here is the revised patch. As per previous discussion, this version still has the limitation that it only works with consoles -- but it would be possible to use threads within gdb_select to extend it to work with a wider variety of handles. In any case, this patch provides useful functionality on Windows, and does not impose the Windows API on generic code. OK to commit? -- Mark Mitchell CodeSourcery, LLC mark@codesourcery.com (916) 791-8304