psutils

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

README


This package provides process-related utilities on Unix-like systems.

Installation

go get github.com/exonlabs/go-utils/pkg/unix/psutils

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetProcTitle

func SetProcTitle(title string) error

SetProcTitle sets the process title in the `/proc` filesystem on Unix-like systems. It modifies the content of the `/proc/[pid]/comm` file, where [pid] is the process ID of the current process. The title is used to identify the process. It returns an error if the title is empty or if it fails to write to the `/proc` file.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL