We cannot trust pid numbers in Unix , because they are reused.
Is there a safe way to see if a process is alive from another process ?
We have a application that uses shared library for the API processes.
If we restart our main application we need to know if there is any
API processes out there. We need to map them in to our global memory
again after we have restarted the main application.
We have been thinking about locking but can't really see how to check
locks from different processes (pthread_mutex_lock).
Is there some system wide locking in UNIX ??
I'm a VMS person so i don't know that much about UNIX , but i know there
is system and cluster wide locking in VMS !
Maybe one solution is to set a file lock , but rather avoid that !