FreeBSD might or might not have /proc mounted. Default is no however, so
you can't be sure.
However you can still save the pid # of the process in some file, then
when starting a new one, read this number, check output of ps (or use
syscalls if applicable) for given number and if "pos" finds the name of
your app then it's running. Otherwise start and override the file.
This way even if you crash and then another process takes your old pid
you still can see if it's your app or not.
Ales
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives