Fix active TMUX session detection

This commit is contained in:
Kovid Goyal 2023-03-04 12:50:07 +05:30
parent 1218a152bf
commit 8bd814444c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -31,6 +31,7 @@ func tmux_socket_address() (socket string) {
if unix.Access(addr, unix.R_OK|unix.W_OK) != nil {
return ""
}
pid_str, _, _ = strings.Cut(pid_str, ",")
pid, err := strconv.ParseInt(pid_str, 10, 32)
if err != nil {
return ""