note 31126 deleted from function.exec by danbrown
| From: | danbrown@php.net | Date: | Sun, 04 Jan 2009 16:34:01 +0000 |
| Subject: | note 31126 deleted from function.exec by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-148817@lists.php.net to get a copy of this message | ||
Note Submitter: nop at netissat dot bg
----
SESSIONS + EXEC
>From: karl at cactuslab dot com
>22-Oct-2002 02:27
>Regarding the question from mightye at mightye dot org about exec leaving >programs running
>in the background causing PHP to lock up - at least for >your current session.
>
>I think this is due to the locking of session data? Try adding a >session_write_close()
>before your exec and see if that fixes it. Fixed it for me.
It seems that this is the right solution. ;]
I tried everything including registering new session(NEW SESSID) and destroyng the old one but this
includes much more code and does not seem clean to me ...
doing session_write_close(); before exec solves the problem
nice end easy :)
-- NOP