note 119258 deleted from function.exec by cmb
| From: | cmb@php.net | Date: | Sun, 22 Sep 2019 07:23:20 +0000 |
| Subject: | note 119258 deleted from function.exec by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-212281@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
Something you guys might find helpful:
If you guys start a process or e.g. a script which starts processes sub processes, look that you
uncouple them from your php script. Otherwise you get the same problem as I, your php script will
wait to get the feedback from the server. So it will wait until the sub processes are dead.
I know two ways to counter that, one way is to make sure the sub processes dont get linked to the
parent process.
The other way is to fire and forget with php (on Unix/Linux just add "/dev/null 2>&1
&" to end of your command, but you should remember you wont get any output from the
process.)
Hope that will help some of you, I had a while until I came on this idea.