Query regarding /proc/<pid>/mem

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

 




Hi all,
        'man proc' suggests that via the /proc/<pid>/mem entry one can 
access the pages of a process's memory through open, read and fseek.

`strace'ing cat suggests that it uses open, read and fseek syscalls. But
when I do 'cat /proc/<pid>/mem' open works but read fails. Output says
mem: No such process.

I don't get this behavior. Somebody please explain.

Anupam




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