summaryrefslogtreecommitdiff
path: root/exit.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-12 07:54:03 -0500
committerJeff Carr <[email protected]>2025-03-12 07:54:03 -0500
commita024c9ece14d3097b3f72f2dc831444afd695d86 (patch)
tree30f7a5ea7c40b81e3c7e57605ff5d0a8e733217f /exit.go
parentc2f796de1e07e59bb379fa4e0a222bc13dcfe571 (diff)
attempting to pass off the socket
Diffstat (limited to 'exit.go')
-rw-r--r--exit.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/exit.go b/exit.go
new file mode 100644
index 0000000..320778f
--- /dev/null
+++ b/exit.go
@@ -0,0 +1,24 @@
+// Copyright 2017-2025 WIT.COM Inc. All rights reserved.
+// Use of this source code is governed by the GPL 3.0
+
+package main
+
+import (
+ "os"
+
+ "go.wit.com/log"
+)
+
+func okExit(note string) {
+ if note != "" {
+ log.Info("gus exit:", note, "ok")
+ }
+ me.myGui.Close()
+ os.Exit(0)
+}
+
+func badExit(err error) {
+ log.Info("gus failed: ", err)
+ me.myGui.Close()
+ os.Exit(-1)
+}