Describe the bug
Calling Children() on a process without child processes returns a non-nil err
the source code uses common.CallPgrepWithContext which calls pgrep -P $PID. If input pid is without child processes, pgrep exit code is 1, the function call returns error with exits status 1
To Reproduce
// paste example code reproducing the bug you are reporting
Expected behavior
The function should return ErrorNoChildren?
Environment (please complete the following information):
Additional context
[Cross-compiling? Paste the command you are using to cross-compile and the result of the corresponding go env]
Describe the bug
Calling
Children()on a process without child processes returns a non-nil errthe source code uses
common.CallPgrepWithContextwhich callspgrep -P $PID. If input pid is without child processes,pgrepexit code is1, the function call returns error withexits status 1To Reproduce
// paste example code reproducing the bug you are reportingExpected behavior
The function should return ErrorNoChildren?
Environment (please complete the following information):
ver]/etc/os-releaseand the result ofuname -a]sw_versanduname -afreebsd-version -k -r -uanduname -a]uname -a]Additional context
[Cross-compiling? Paste the command you are using to cross-compile and the result of the corresponding
go env]