libpcp and pmcd both need to know if a given pid_t matches
a running process. Currently the both have the same code
duplicated (exists_process). Its platform-specific stuff
too - the MacOSX implementation differs to *nix, which is
different again to Win32 of course.
This patch creates a libpcp __pmProcessExists() interface
from exists_process, and implements the Win32 variant.
pmcd is updated to call this too, instead of its own copy.
libpcp and pmcd both need to know if a given pid_t matches
a running process. Currently the both have the same code
duplicated (exists_process). Its platform-specific stuff
too - the MacOSX implementation differs to *nix, which is
different again to Win32 of course.
This patch creates a libpcp __pmProcessExists() interface
from exists_process, and implements the Win32 variant.
pmcd is updated to call this too, instead of its own copy.