Re: PHP 4.0 Bug #7235: session_destroy() still doesnotunlink session object
| From: | Phil Driscoll | Date: | Mon, 16 Oct 2000 18:52:21 +0000 |
| Subject: | Re: PHP 4.0 Bug #7235: session_destroy() still doesnotunlink session object | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-35179@lists.php.net to get a copy of this message | ||
Sascha wrote:
> Is there any magic we can apply to a file/fd, so that we get
> POSIX compliance?
>
> "If one or more processes have the file open when the
> last link is removed, the link shall be removed before
> unlink() returns, but the removal of the file contents
> shall be postponed until all references to the file have
> been closed.
>
I can't find anything in the MSDN documentation that helps. All I can
suggest is starting a thread (or put some code in an existing thread that
will stay alive) that hangs around trying to delete the file every so often
until it succeeds.
Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org