The Apache::SubProcess tests were always passing under perlio, but without it were randomly failing. I spent a lot of time trying to figure out what's going on, but in vain. Finally I've noticed that when stepping through with debugger the tests always pass.
The reason for the failure was that spawn_proc was returning a FILE* pipe handle which should be used as a such [read: need to select() before trying to reading]. With perlio the same tests pass properly because perlio internally calls apr_file_read() on the pipe filehandle, which internally calls apr_wait_for_io_or_timeout() which essentially does the select() call internally. But... you cannot call perl's select() on PerlIO fh. So to make your code working with perlio and non-perlio perl builds you have to write your perl code using select() for non-perlio case and without it with perlio and then it all works. Yay! A fixed test commit is coming soon. __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
