From 6e4013b190d0e04c40499dfe7e8cd073c9e27d86 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 12 Mar 2008 06:44:33 +0000 Subject: [PATCH] fix Service.* filter on non-windows --- src/sigar_ptql.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/sigar_ptql.c b/src/sigar_ptql.c index 063c8593..1d89852c 100644 --- a/src/sigar_ptql.c +++ b/src/sigar_ptql.c @@ -854,15 +854,17 @@ static int ptql_pid_list_get(sigar_t *sigar, int status, i; sigar_pid_t match_pid; -#ifdef WIN32 if (branch->flags >= PTQL_PID_SERVICE) { if ((branch->flags > PTQL_PID_SERVICE) || (branch->op_name != PTQL_OP_EQ)) { +#ifdef WIN32 return ptql_pid_service_list_get(sigar, branch, proclist); +#else + return SIGAR_OK; /* no matches */ +#endif } } -#endif status = ptql_pid_get(sigar, branch, &match_pid);