battling with xps returning no output:

# xps -a
NODE    PID     TTY     STAT    TIME    JOBID   COMMAND
#

the culprit was the '(' and ')' in cmdline for a process.
what a mess.

# cat /proc/5633/cmdline 
hald-addon-storage: polling /dev/scd0 (every 2 sec)#

This should fix it for now.

Signed-off-by: Abhishek Kulkarni <[EMAIL PROTECTED]>

Index: libxcpu/proc.c
===================================================================
--- libxcpu/proc.c      (revision 743)
+++ libxcpu/proc.c      (working copy)
@@ -236,12 +236,11 @@
                goto error;
 
        /* parse cmdline */
-       // TODO: handle ')' in arguments 
        s++;
        if (*s != '(')
                goto error;
 
-       t = strchr(s, ')');
+       t = strrchr(s, ')');
        if (!t)
                goto error;
 


Reply via email to