On fredag, feb 21, 2003, at 10:10 Europe/Stockholm, A. Bergman wrote:


    #   PID TTY      STAT   TIME COMMAND
    # 24571 pts/3    S      0:00 -tcsh
    #  5653 pts/3    S      0:00 foobar
    #  5654 pts/3    S      0:00  \_ foobar
    #  5664 pts/3    R      0:00  \_ ps -f
    not ok 11 - altering $0 is effective
    # Failed test at line 114

I suspect a underlying libc problem here, or is this a SMP machine?

No, an ordinary single-CPU (Athlon 1600+).


-- Johan

Ah, this is the global $0 thingy breaking, but it seems like it isn't really breaking, according to the ps output? But why is the second mainthread not changed?



Seems like your ps -f differs from mine,


borderline:~$ ps -f
UID        PID  PPID  C STIME TTY          TIME CMD
artur    16387 16386  0 10:13 pts/4    00:00:00 -bash

meaning this regex is

if (/^\S+\s+$$\s.+\sfoobar$/) {

is not correct, perhaps we want to test

/^(\S+\s+$$|$$)\s.+foobar$/ ?

what linux distro are you using?

Arthur



Reply via email to