From 13ae080af213d5ebd1c670fc0d5398eba973582c Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Mon, 12 May 2025 21:57:37 -0400 Subject: [PATCH] Define socketPath for interactive clients --- daemon/1socketPathInteractive.go | 5 +++++ daemon/{1sharedTermux.go => 1socketPathTermux.go} | 2 +- daemon/{1sharedUNIXGeneric.go => 1socketPathUNIXGeneric.go} | 2 +- daemon/{1sharedWindows.go => 1socketPathWindows.go} | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 daemon/1socketPathInteractive.go rename daemon/{1sharedTermux.go => 1socketPathTermux.go} (78%) rename daemon/{1sharedUNIXGeneric.go => 1socketPathUNIXGeneric.go} (69%) rename daemon/{1sharedWindows.go => 1socketPathWindows.go} (79%) diff --git a/daemon/1socketPathInteractive.go b/daemon/1socketPathInteractive.go new file mode 100644 index 0000000..8fb52e2 --- /dev/null +++ b/daemon/1socketPathInteractive.go @@ -0,0 +1,5 @@ +//go:build interactive + +package daemon + +var socketPath string // interactive clients are not expected to daemonize diff --git a/daemon/1sharedTermux.go b/daemon/1socketPathTermux.go similarity index 78% rename from daemon/1sharedTermux.go rename to daemon/1socketPathTermux.go index d4eb069..bffc9bc 100644 --- a/daemon/1sharedTermux.go +++ b/daemon/1socketPathTermux.go @@ -1,4 +1,4 @@ -//go:build android && termux +//go:build android && termux && !interactive package daemon diff --git a/daemon/1sharedUNIXGeneric.go b/daemon/1socketPathUNIXGeneric.go similarity index 69% rename from daemon/1sharedUNIXGeneric.go rename to daemon/1socketPathUNIXGeneric.go index d587e4e..dfb76ab 100644 --- a/daemon/1sharedUNIXGeneric.go +++ b/daemon/1socketPathUNIXGeneric.go @@ -1,4 +1,4 @@ -//go:build !windows && !android && !termux +//go:build !windows && !android && !termux && !interactive package daemon diff --git a/daemon/1sharedWindows.go b/daemon/1socketPathWindows.go similarity index 79% rename from daemon/1sharedWindows.go rename to daemon/1socketPathWindows.go index 889d3dd..ac19623 100644 --- a/daemon/1sharedWindows.go +++ b/daemon/1socketPathWindows.go @@ -1,4 +1,4 @@ -//go:build windows +//go:build windows && !interactive package daemon