summaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2025-06-14 00:41:27 +0200
committerThomas Voss <mail@thomasvoss.com> 2025-06-14 00:41:27 +0200
commit4f14515613bd491dd0627398aa8fc3e3aef07945 (patch)
tree61d7ad4890707b280c15118c47281a02dc5000f7 /main.go
parent604cac8c0ab26a43d28341ff6f6e58e969eec925 (diff)
Implement the ‘atexit’ package
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.go b/main.go
index 71e652e..dd7328e 100644
--- a/main.go
+++ b/main.go
@@ -11,6 +11,7 @@ import (
"git.thomasvoss.com/euro-cash.eu/src"
"git.thomasvoss.com/euro-cash.eu/src/dbx"
+ "git.thomasvoss.com/euro-cash.eu/src/atexit"
"git.thomasvoss.com/euro-cash.eu/src/email"
. "git.thomasvoss.com/euro-cash.eu/src/try"
"git.thomasvoss.com/euro-cash.eu/src/watch"
@@ -40,6 +41,7 @@ func main() {
if *debugp {
path := Try2(os.Executable())
go watch.File(path, func() {
+ atexit.Exec()
Try(syscall.Exec(path, os.Args, os.Environ()))
})
}