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 -
According to pthreads docs: "Mutexes can be applied only to threads in a
single process and do not work between processes as do semaphores."
Maybe semaphores are right solution ?
Regards
Boguslaw
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives