Movatterモバイル変換


[0]ホーム

URL:


pidowner

package
v1.92.3Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2025 License:BSD-3-ClauseImports:6Imported by:1

Details

Repository

github.com/tailscale/tailscale

Links

Documentation

Overview

Package pidowner handles lookups from process ID to its owning user.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotImplemented =errors.New("not implemented for GOOS=" +runtime.GOOS)
View Source
var ErrProcessNotFound =errors.New("process not found")

Functions

funcOwnerOfPID

func OwnerOfPID(pidint) (userIDstring, errerror)

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 wherethis isn't supported.

Types

This section is empty.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp