Graeme Geldenhuys wrote:
On 28/09/06, John vd Waeter <[EMAIL PROTECTED]> wrote:
Problem when program crashes. File is not deleted. Maybe refresh file
every 5 minutes or so, put a timestamp in it. If timestamp older then 5
minutes, program appearantly crashed, new instance may start.
John
Simple solution, program with Unit Tests, so you app is rock solid and
will never crash. :-)
PS:
Anybody know if mutexes in Linux is system wide?
Regards,
- Graeme -
Well.The main problem with linux in this particular case is that it's
hard to find such global resource which is:
- atomic (no other process can get it in the same time like file lock or
system-wide mutex)
- automatically released when application exit or crash or being killed
Maybe unix sockets ?
Someone with deeper linux knowledge ?
Regards
Boguslaw
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives