Jump to content

unlink fails once in a while


abazoskib

Recommended Posts

i have several scripts that run at different times during the day on my server(some every 2 hours, some every 10 minutes, etc..). Each script creates a blank lock file, so I can tell what is running without using ps aux every time, and to make sure a duplicate process does not get spawned while it is running. At the end of the scripts I use unlink($fileName), however I noticed that once in a while it will not delete the lock file, yet the process is over, and no error messages as far as I can tell. Anyone see this before?

Link to comment
https://forums.phpfreaks.com/topic/169395-unlink-fails-once-in-a-while/
Share on other sites

it is currently set at 90 if i remember correctly, but now that you meantion, perhaps i should set it to 0, because i use PHP primarily for server side scripting. i only use one file for web interaction, out of the hundred something scripts i have.

 

would that fix it?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.