[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Query regarding /proc/<pid>/mem
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/