gothfox/Tiny-Tiny-RSS — pull request #14 by vertecx (2011-12-07 00:39:29+00:00)
Title: Close pointer to lock file before unlinking

Andrew,

I got the following warning in my PHP error log every DAEMON_SLEEP_INTERVAL seconds while running the update daemon:

[01-Dec-2011 23:04:03] PHP Warning: unlink(lock/update.lock): Permission denied in C:\inetpub\example.com\rss\update.php on line 124

Closing the file pointer to the update.lock file before unlinking fixed it for me. Server is running Windows Server 2008 R2 x64, IIS 7.5 and PHP 5.3.8.

Regards,
Petter