refine SimpleLockfile with closing lockf immediately
authorGui Chen <gui.chen@intel.com>
Fri, 16 Aug 2013 03:04:38 +0000 (23:04 -0400)
committerGui Chen <gui.chen@intel.com>
Fri, 16 Aug 2013 03:23:53 +0000 (23:23 -0400)
commit2f115a0b9183db08dc3f4fb91216e9d27ecc574a
treed1d7d3fd4c0f9c9bb7c033d4904e8a598279611a
parent8b4c6084ec6a94459f923a6a830b35a1c2144de2
refine SimpleLockfile with closing lockf immediately

close the lock file immediately after create and open it,
it doesn't block the O_EXCL working because the file already
exists

Signed-off-by: Gui Chen <gui.chen@intel.com>
mic/utils/lock.py