flock locks in folly::File, FileUtil, Exception.h fixes and tests
authorTudor Bosman <tudorb@fb.com>
Fri, 26 Apr 2013 22:32:36 +0000 (15:32 -0700)
committerSara Golemon <sgolemon@fb.com>
Mon, 20 May 2013 18:01:26 +0000 (11:01 -0700)
commitd1028d196481191a6e3adf1b081f736b89c52cfa
tree6f7539c3b6eb9ad087e954ae1461dcc87f2260e5
parentd6e5191558bf975609761af76a173fa3e197eee3
flock locks in folly::File, FileUtil, Exception.h fixes and tests

Summary:
Test required a separate process, as fcntl locks are always re-granted to
a process that holds the lock.

Test Plan: new tests, all tests under folly

Reviewed By: lucian@fb.com

FB internal diff: D791370
folly/Exception.h
folly/File.cpp
folly/File.h
folly/FileUtil.cpp [new file with mode: 0644]
folly/FileUtil.h [new file with mode: 0644]
folly/test/ExceptionTest.cpp [new file with mode: 0644]
folly/test/FileTest.cpp
folly/test/FileTestLockHelper.cpp [new file with mode: 0644]
folly/test/SubprocessTest.cpp