whoops, lockf was invalid

This commit is contained in:
David Rose 2009-08-07 17:56:51 +00:00
parent 1db044ca4e
commit a97723c5c2

View File

@ -2733,7 +2733,7 @@ atomic_read_contents(string &contents) const {
#else // WIN32_VC
string os_specific = to_os_specific();
int fd = open(os_specific.c_str(), O_RDONLY | O_CREAT, 0666);
int fd = open(os_specific.c_str(), O_RDWR | O_CREAT, 0666);
if (fd < 0) {
perror(os_specific.c_str());
return false;