Try this in a script:
?php
exec( /bin/sleep 30 /dev/null 21 /dev/null ) ;
echo Done !! ;
?
Now call it from the browser several time (Reload button). If you type a ps ax
command you will see several sleep 30 processes. Wait all the processes to stop.
Now put session_start() as
You probably use file based session storage, didn't you?
Then teach your backround script to close all file handles at startup as
every good daemon should do :).
PHP always locks the file session file when you open the session and
unlocks it only (by closing it) when you close the session or