Commit Graph

6 Commits (c804a9e755c3cb29d5b7e181dcd3ac7366524bc4)

Author SHA1 Message Date
Robert Weber c804a9e755 Per suggestions 9 years ago
Robert Weber 21daedd6b4 There are two possible error scenarios for CallPgrep. One indicates a broken
system (no pgrep command) and one is a normal error state of pgrep
meaning no processes found for the criteria given (in this case the parent
pid does not exist or the process simply has no children).  The later case
is quite usefull to know about so I added a static error for this case.
9 years ago
Shawn Smith 9cc9e82920 fix typos 10 years ago
James Lamb 22f35fd518 add netfilter counter support 10 years ago
Shirou WAKAYAMA dd13300833 process[linux,freebsd,darwin]: implements Children using pgrep. 10 years ago
Daniel Theophanes 0af895258e common: rename package common to internal/common. Add ENV helper funcs.
Package common wasn't used for public functions. Place it in an
internal directory to prevent other packages from using.

Remove the distributed references to "HOST_PROC" and "HOST_SYS"
consts and combine into a common function. This also helps so that
if a env var is defined with a trailing slash all will continue to
work as expected.

Fixes #100
10 years ago