You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gopsutil/process
Lomanic 76ccf0d220 [process][darwin][freebsd][linux][openbsd] Make process.Children not reliant on pgrep
pgrep -P $PID exits with status of 1 (and nothing in stdout nor stderr) both if
a process doesn't exist or it doesn't have child processes, so we don't
use it anymore on these OSes. We sort PIDs as pgrep did.

Also deprecate the ErrorNoChildren error when there are no child processes,
this is erroneous (simply check for the length of the returned slice, plus
this is not an error per se), this was only returned on linux anyway.

Fixes #1698
8 months ago
..
testdata fix(proc): parsing of smaps path 9 months ago
process.go [process][darwin][freebsd][linux][openbsd] Make process.Children not reliant on pgrep 8 months ago
process_bsd.go add SPDX License, remove old build tag, and replace import 12 months ago
process_darwin.go [process][darwin][freebsd][linux][openbsd] Make process.Children not reliant on pgrep 8 months ago
process_darwin_amd64.go add SPDX License, remove old build tag, and replace import 12 months ago
process_darwin_arm64.go add SPDX License, remove old build tag, and replace import 12 months ago
process_darwin_cgo.go add SPDX License, remove old build tag, and replace import 12 months ago
process_darwin_nocgo.go fix golangcilint errors, ignore gosec G115 9 months ago
process_fallback.go fix: golangci lint with max -> maxConn 9 months ago
process_freebsd.go [process][darwin][freebsd][linux][openbsd] Make process.Children not reliant on pgrep 8 months ago
process_freebsd_386.go add SPDX License, remove old build tag, and replace import 12 months ago
process_freebsd_amd64.go add SPDX License, remove old build tag, and replace import 12 months ago
process_freebsd_arm.go add SPDX License, remove old build tag, and replace import 12 months ago
process_freebsd_arm64.go add SPDX License, remove old build tag, and replace import 12 months ago
process_linux.go [process][darwin][freebsd][linux][openbsd] Make process.Children not reliant on pgrep 8 months ago
process_linux_test.go fix(proc): parsing of smaps path 9 months ago
process_openbsd.go [process][darwin][freebsd][linux][openbsd] Make process.Children not reliant on pgrep 8 months ago
process_openbsd_386.go add SPDX License, remove old build tag, and replace import 12 months ago
process_openbsd_amd64.go add SPDX License, remove old build tag, and replace import 12 months ago
process_openbsd_arm.go add SPDX License, remove old build tag, and replace import 12 months ago
process_openbsd_arm64.go add SPDX License, remove old build tag, and replace import 12 months ago
process_openbsd_riscv64.go add SPDX License, remove old build tag, and replace import 12 months ago
process_plan9.go fix: golangci lint with max -> maxConn 9 months ago
process_posix.go add SPDX License, remove old build tag, and replace import 12 months ago
process_posix_test.go add SPDX License, remove old build tag, and replace import 12 months ago
process_race_test.go rename redundant test function names, such as TestCPU in cpu package 12 months ago
process_solaris.go fix: golangci lint with max -> maxConn 9 months ago
process_test.go fix golangcilint errors, ignore gosec G115 9 months ago
process_windows.go fix: golangci lint with max -> maxConn 9 months ago
process_windows_32bit.go add SPDX License, remove old build tag, and replace import 12 months ago
process_windows_64bit.go add SPDX License, remove old build tag, and replace import 12 months ago
types_darwin.go add SPDX License, remove old build tag, and replace import 12 months ago
types_freebsd.go add SPDX License, remove old build tag, and replace import 12 months ago
types_openbsd.go add SPDX License, remove old build tag, and replace import 12 months ago