IPACM: Change the method for preventing multiple instances of ipacm
This change modified the method applied to check if there's already
an instance of ipacm running. Instead of comparing PIDs, and accessing
/proc, the current method tries to lock a ipacm-specific file, in case
the locking fails (Exclusive lock), this means that another instance of
ipacm is already holding the lock, and the current can be terminated.
CRs-fixed: 702419
Change-Id: I8e9b5fc4dda522ca4e096e26b479ab6e7849e8bb
Acked-by: David Arinzon <darinzon@qti.qualcomm.com>
1 file changed