From 04f50808590f0e321d1ef09d032e924661aeca60 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 11 Mar 2007 21:50:23 +0000 Subject: [PATCH] implement Pid.Service query --- src/sigar_ptql.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/sigar_ptql.c b/src/sigar_ptql.c index e50867e7..0a6012ee 100644 --- a/src/sigar_ptql.c +++ b/src/sigar_ptql.c @@ -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