Re: getting pids on 2.6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux