Re: poll/select process's IO on windows

2009-06-17 Thread Erik Huelsmann
Hi Jack, Regardless of the portability library that you're using, Windows doesn't allow select() operations on any other than socket handles. I don't have personal experience how to work around that issue with APR though, I'm sorry. With kind regards, Erik. On Tue, Jun 16, 2009 at 8:42 PM,

Re: poll/select process's IO on windows

2009-06-17 Thread Mladen Turk
Jack Andrews wrote: hi, i want to detect IO on a child process stdio as well as a socket from elsewhere. ie. i want a select() on /windows/. is it possible with APR? or do i have to hack around? It's not possible with APR, however you can make a hack if you know its stdin (or stdout,

Re: poll/select process's IO on windows

2009-06-17 Thread Jack Andrews
i want to detect IO on a child process stdio as well as a socket from elsewhere.  ie. i want a select() on /windows/. i wonder if it would be useful to have an apr_socket_from_files(files_in, files_out, socket) that plugs a socket onto the end of pipes on windows. . only implement on

poll/select process's IO on windows

2009-06-16 Thread Jack Andrews
hi, i want to detect IO on a child process stdio as well as a socket from elsewhere. ie. i want a select() on /windows/. is it possible with APR? or do i have to hack around? my first attempt is here: int main(int c,char** argv) { apr_procattr_t *attr; const char*args[]={cmd.exe,0};