Re: calling php script from C - pclose problem

From: Date: Wed, 05 Apr 2006 16:07:59 +0000
Subject: Re: calling php script from C - pclose problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-233279@lists.php.net to get a copy of this message
Ysidro wrote:
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?
good question. given that nobody has answered it probably means nobody here who has read the list in the last couple of days knows the answer. I assume google/yahoo didn't help you either (given your programming in C, it's probably safe to assume your not new to the 'research the problem' game :-) it might be worth asking on internals@lists.php.net if you still don't get a reponse in the next 24 hours (make sure to mention that you already asked here!).


« previous php.general (#233279) next »