Re: /proc/pid/cmdline question

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

 



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