note 18443 added to ref.exec
| From: | edwin at lazypeople dot net | Date: | Wed, 23 Jan 2002 08:48:36 +0000 |
| Subject: | note 18443 added to ref.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-25734@lists.php.net to get a copy of this message | ||
If you are using sessions and want to start a background process, you might have the following
problem:
The first time you call your script everything goes fine, but when you call it again and the process
is STILL running, your script seems to "freeze" until you kill the process you started the
first time.
You'll have to call session_write_close(); to solve this problem. It has something to do with
the fact that only one script/process can operate at once on a session. (others will be lockedout
until the script finishes)
I don't know why it somehow seems to be influenced by background processes, but I tried
everything and this is the only solution. (i had a perl script that "daemonized" it's
self like the example in the perl manuals)
Took me a long time to figure out, thanks ian@virtisp.net! :-)
Edwin Eefting
--
http://www.php.net/manual/en/ref.exec.php
http://master.php.net/manage/user-notes.php?action=edit+18443
http://master.php.net/manage/user-notes.php?action=delete+18443
http://master.php.net/manage/user-notes.php?action=reject+18443