Fwd: /proc/pid/cmdline question

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

 





---------- Forwarded message ----------
From: Fernando Apesteguía <fernando.apesteguia@xxxxxxxxx>
Date: Aug 17, 2006 9:20 AM
Subject: Re: /proc/pid/cmdline question
To: Jim Bauer <jfbauer@xxxxxxxxxxx>

Thanks Jim... I've been searching and maybe what I really want is the Name field of the status file, since this field shows the name properly.

Best regards


On 8/17/06, Jim Bauer <jfbauer@xxxxxxxxxxx> wrote:
On Wednesday 16 August 2006 11:43, Fernando Apesteguía wrote:
> Hi List!
>
> I'm wondering why some cmdline files are empty. As shown in the man page
> for "proc" this file is empty when the process is swapped out or the
> process is zombie.
>
> When I cat the /proc/5/cmdline I read 0 chars, but the ps command shows
> this:
>
> root         5  0.0  0.0      0     0 ?        S<   Aug07   0:00 [kthread].
>
> The "S" state code indicates that the process is sleeping, but is it
> swapped out?
>
> Am I missing something?

That is a kernel thread.  They won't have a command line.

--
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