On Sat, Jan 29, 2005 at 07:05:13PM -0800, Jed Brazos wrote: > Hi, > > I'm trying to list all of the tasks and their children. > > The code below does not list all of the code as compared to the /proc entries. > > Why does the following code not list all of the active pids in the system? > I ran the piece of code. [om@turyx ~/prg/pid_list_test]$ dmesg | grep parent| wc -l; ps ax | wc -l 97 99 second entry is 99 because of ps and wc. Seems like it is ok. -- The public demands certainties; it must be told definitely and a bit raucously that this is true and that is false. But there are no certainties. -- H.L. Mencken, "Prejudice" -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/