Skip to content

Commit

Permalink
Added disown to send socat command to background for better use in .b…
Browse files Browse the repository at this point in the history
…ashrc
  • Loading branch information
PortalMario committed Oct 24, 2023
1 parent cc89398 commit 003a3bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/vsock.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 003a3bb

Please sign in to comment.