note 18443 deleted from ref.exec by irc-html
| From: | irc-html@php.net | Date: | Wed, 23 Jan 2002 11:16:22 +0000 |
| Subject: | note 18443 deleted from ref.exec by irc-html | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-25741@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