third time is the charm

This commit is contained in:
Jae Kwon
2015-04-20 18:01:30 -07:00
parent 99a040998f
commit dc051eb87f
2 changed files with 13 additions and 1 deletions

View File

@ -81,7 +81,10 @@ func main() {
}
// Write pid to file.
AtomicWriteFile(barak.rootDir+"/pidfile", []byte(Fmt("%v", barak.pid)))
err = AtomicWriteFile(barak.rootDir+"/pidfile", []byte(Fmt("%v", barak.pid)))
if err != nil {
panic(Fmt("Error writing pidfile: %v", err))
}
// Debug.
fmt.Printf("Options: %v\n", options)