aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.go b/main.go
index 5a000b3..b1a29a1 100644
--- a/main.go
+++ b/main.go
@@ -34,6 +34,9 @@ func main() {
if err != nil {
log.Fatalf("Could not load the configuration: %v.", err)
}
+ if err := fd.Close(); err != nil {
+ log.Printf("Failed to close configuration file: %v.", err)
+ }
done := make(chan os.Signal, 1)
signal.Notify(done, os.Interrupt, unix.SIGTERM)