kelseyhightower/confd — pull request #47 by gabrtv (2014-03-17 21:32:57+00:00)
Title: Defer tempfile close to avoid dangling FDs

Though the `tempfile` is being deleted later in the function, the file descriptor remains open. This causes strange `ETXTBSY` errors under certain conditions.