diff options
| author | Jeff Carr <[email protected]> | 2025-03-12 07:54:03 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-12 07:54:03 -0500 |
| commit | a024c9ece14d3097b3f72f2dc831444afd695d86 (patch) | |
| tree | 30f7a5ea7c40b81e3c7e57605ff5d0a8e733217f /exit.go | |
| parent | c2f796de1e07e59bb379fa4e0a222bc13dcfe571 (diff) | |
attempting to pass off the socket
Diffstat (limited to 'exit.go')
| -rw-r--r-- | exit.go | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -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) +} |
