calling php script from C - pclose problem
| From: | Ysidro | Date: | Tue, 04 Apr 2006 20:57:25 +0000 |
| Subject: | calling php script from C - pclose problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-233230@lists.php.net to get a copy of this message | ||
Hello,
Calling a php script from legacy c code using popen(), works great.
Problem: when php script is done, pclose() in c code fails with ECHILD, No child process, wait4() failed.
This is because the php script does not hang around to be wait'ed for; any idea how to make a command line php script behave like a normal child process that waits for its parent to get a status via a wait system call?