implement Pid.Service query

This commit is contained in:
Doug MacEachern 2007-03-11 21:50:23 +00:00
parent 4162251bf3
commit 04f5080859
1 changed files with 6 additions and 1 deletions

View File

@ -591,7 +591,12 @@ static int ptql_pid_match(sigar_t *sigar,
}
else if (branch->flags == PTQL_PID_SERVICE) {
#ifdef WIN32
return !SIGAR_OK; /*XXX*/
int status =
sigar_service_pid_get(sigar,
branch->data.str, &match_pid);
if (status != SIGAR_OK) {
return status;
}
#else
return !SIGAR_OK;
#endif