summaryrefslogtreecommitdiffhomepage
path: root/util/pidowner/pidowner.go
diff options
context:
space:
mode:
authorAndrew Lytvynov <awly@tailscale.com>2026-04-24 15:53:27 -0700
committerAndrew Lytvynov <awly@tailscale.com>2026-04-24 15:53:27 -0700
commit4d91c36b9ce0228c1a348088d761d8f213e06287 (patch)
treee0f0fd0f9cbfbc131b7c456cabf4809f8c15cf94 /util/pidowner/pidowner.go
parent1b40911611b37947bdc905dec30b2914af540920 (diff)
downloadtailscale-awly/deadcode-pidowner.tar.xz
tailscale-awly/deadcode-pidowner.zip
util/pidowner: remove unused packageawly/deadcode-pidowner
Added in 2020, this appears to be unused. Updates #cleanup
Diffstat (limited to 'util/pidowner/pidowner.go')
-rw-r--r--util/pidowner/pidowner.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/util/pidowner/pidowner.go b/util/pidowner/pidowner.go
deleted file mode 100644
index cec92ba36..000000000
--- a/util/pidowner/pidowner.go
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright (c) Tailscale Inc & contributors
-// SPDX-License-Identifier: BSD-3-Clause
-
-// Package pidowner handles lookups from process ID to its owning user.
-package pidowner
-
-import (
- "errors"
- "runtime"
-)
-
-var ErrNotImplemented = errors.New("not implemented for GOOS=" + runtime.GOOS)
-
-var ErrProcessNotFound = errors.New("process not found")
-
-// OwnerOfPID returns the user ID that owns the given process ID.
-//
-// The returned user ID is suitable to passing to os/user.LookupId.
-//
-// The returned error will be ErrNotImplemented for operating systems where
-// this isn't supported.
-func OwnerOfPID(pid int) (userID string, err error) {
- return ownerOfPID(pid)
-}