From 4f14515613bd491dd0627398aa8fc3e3aef07945 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 14 Jun 2025 00:41:27 +0200 Subject: Implement the ‘atexit’ package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.go') 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())) }) } -- cgit v1.2.3