From 6a17144ef4def87b0f89ed2613ccb34ea1f10723 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Wed, 30 Jul 2025 11:37:46 +0200 Subject: [PATCH] Don't exit after handling daemon mode The function that called us has just created a temp dir, and scheduled a defer to remove it again; by calling os.Exit we short-cut this defer, and don't clean up the temp dir. There is no reason to exit here, the calling function will return after having called us. --- pkg/app/daemon/daemon.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/app/daemon/daemon.go b/pkg/app/daemon/daemon.go index 16b9bf5e5..6b29fd62d 100644 --- a/pkg/app/daemon/daemon.go +++ b/pkg/app/daemon/daemon.go @@ -76,8 +76,6 @@ func Handle(common *common.Common) { if err := instruction.run(common); err != nil { log.Fatal(err) } - - os.Exit(0) } func InDaemonMode() bool {