Re: [PHP-DEV] calling php script from C - pclose problem

2006-04-05 Thread Wez Furlong
That doesn't sound right... it's more likely that you're doing something funky in your process (not php) with SIGCHLD so that wait4() misses the event when you pclose. My suggestion: strace your stuff and look for rogue signal() and wait style calls that might be screwing things up. Third party l

[PHP-DEV] calling php script from C - pclose problem

2006-04-05 Thread Ysidro
Hello, Posted this message on php-general@lists.php.net and only received a very helpful suggestion to post here, thanks in advance for any additional help... Calling a php script from legacy c code using popen(), works great. Problem: when php script is done, pclose() in c code fails with EC