Hi,
I have been working on some locking code but now I'm stuck on the last hurdle!
I need a 'catch all' piece of code that will check the time stamp of the lock file and if its old delete it and start the locking proccess anew.
After looking at the Stat function I presume I can use the ctime information to tell me how old the file is, my question is what do I use to test the ctime against (ie. time now since epoch)?
Any ideas?
----------------------------------------
Of all the things I have lost in my life, the thing I miss the MOST is my mind!
----------------------------------------
I have been working on some locking code but now I'm stuck on the last hurdle!
I need a 'catch all' piece of code that will check the time stamp of the lock file and if its old delete it and start the locking proccess anew.
After looking at the Stat function I presume I can use the ctime information to tell me how old the file is, my question is what do I use to test the ctime against (ie. time now since epoch)?
Any ideas?
----------------------------------------
Of all the things I have lost in my life, the thing I miss the MOST is my mind!
----------------------------------------