Chore: Merge branch 'ogn-dev' into with-tun

This commit is contained in:
yaling888
2022-03-13 01:15:35 +08:00
4 changed files with 24 additions and 51 deletions

View File

@ -3,7 +3,6 @@ package process
import (
"encoding/binary"
"net"
"path/filepath"
"syscall"
"unsafe"
@ -96,7 +95,7 @@ func getExecPathFromPID(pid uint32) (string, error) {
return "", errno
}
return filepath.Base(unix.ByteSliceToString(buf)), nil
return unix.ByteSliceToString(buf), nil
}
func readNativeUint32(b []byte) uint32 {