Searched refs:mIptablesLock (Results 1 – 1 of 1) sorted by relevance
46 int mIptablesLock = -1; member in IptablesRestoreControllerTest121 mIptablesLock = open(XT_LOCK_NAME, O_CREAT, 0600); in acquireIptablesLock()122 if (mIptablesLock == -1) return mIptablesLock; in acquireIptablesLock()125 if (flock(mIptablesLock, LOCK_EX | LOCK_NB) == 0) { in acquireIptablesLock()137 if (mIptablesLock != -1) { in releaseIptablesLock()138 close(mIptablesLock); in releaseIptablesLock()