Skip to content

Commit 6a17144

Browse files
committed
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.
1 parent f4afeed commit 6a17144

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pkg/app/daemon/daemon.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ func Handle(common *common.Common) {
7676
if err := instruction.run(common); err != nil {
7777
log.Fatal(err)
7878
}
79-
80-
os.Exit(0)
8179
}
8280

8381
func InDaemonMode() bool {

0 commit comments

Comments
 (0)