Skip to content

Commit

Permalink
Merge pull request #86 from PortalMario/disown_socat
Browse files Browse the repository at this point in the history
Added disown to send socat command to background
  • Loading branch information
buptczq authored Mar 19, 2024
2 parents cc89398 + 003a3bb commit f9b017a
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 f9b017a

Please sign in to comment.