Clean up process/proc

This commit is contained in:
Daniel
2019-10-25 13:34:38 +02:00
parent eeef53e01e
commit 5799d2559b
4 changed files with 10 additions and 3 deletions

View File

@@ -16,6 +16,7 @@ var (
pidsByUser = make(map[int][]int)
)
// GetPidOfInode returns the pid of the given uid and socket inode.
func GetPidOfInode(uid, inode int) (int, bool) {
pidsByUserLock.Lock()
defer pidsByUserLock.Unlock()