From 003a3bbd84c2a6b1293a7c58733ee1d19ef48b85 Mon Sep 17 00:00:00 2001 From: PortalMario <51074535+PortalMario@users.noreply.github.com> Date: Tue, 24 Oct 2023 19:28:14 +0200 Subject: [PATCH] Added disown to send socat command to background for better use in .bashrc --- app/vsock.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vsock.go b/app/vsock.go index 8e76be0..6fa6c1a 100644 --- a/app/vsock.go +++ b/app/vsock.go @@ -202,7 +202,7 @@ func (s *VSock) onClick() { ss -lnx | grep -q $SSH_AUTH_SOCK if [ $? -ne 0 ]; then rm -f $SSH_AUTH_SOCK - (setsid nohup socat UNIX-LISTEN:$SSH_AUTH_SOCK,fork SOCKET-CONNECT:40:0:x0000x33332222x02000000x00000000 >/dev/null 2>&1) + (setsid nohup socat UNIX-LISTEN:$SSH_AUTH_SOCK,fork SOCKET-CONNECT:40:0:x0000x33332222x02000000x00000000 >/dev/null 2>&1) & disown fi` if utils.MessageBox(s.AppId().FullName()+" (OK to copy):", help, utils.MB_OKCANCEL) == utils.IDOK { utils.SetClipBoard(help)