Home
last modified time | relevance | path

Searched refs:mIptablesLock (Results 1 – 1 of 1) sorted by relevance

/system/netd/server/
DIptablesRestoreControllerTest.cpp46 int mIptablesLock = -1; member in IptablesRestoreControllerTest
121 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()