folly: MemoryMapping: respect writable when opening the file
authorLucian Grijincu <lucian@fb.com>
Wed, 8 Apr 2015 18:14:17 +0000 (11:14 -0700)
committerViswanath Sivakumar <viswanath@fb.com>
Fri, 10 Apr 2015 03:34:36 +0000 (20:34 -0700)
commitd2eda017c492baf468ea9cd51d5618d56b6ca900
tree6fa8c9f0e3e9aaab2670bf3d908423db18339716
parent69befbf8072196103046f8a49fce7547310508fa
folly: MemoryMapping: respect writable when opening the file

Summary: the file needs to be opened with write-permissions before it can be mmaped with PROT_WRITE.

Test Plan: n/a

Reviewed By: philipp@fb.com

Subscribers: folly-diffs@, yfeldblum, chalfant

FB internal diff: D1974895

Signature: t1:1974895:1428451664:1106019abf02b9de659ce0d305e3d788ae7d60bc
folly/MemoryMapping.cpp