Commit 9c26de0fd175c2fbb9c67908a0f8bcd37e81252b

Edward Thomson 2015-04-27T15:38:44

config: lock the file for write before reading When writing a configuration file, we want to take a lock on the new file (eg, `config.lock`) before opening the configuration file (`config`) for reading so that we can prevent somebody from changing the contents underneath us.