Hi, Robert! You may also use zombie status. Just implement a small new program: #include <unistd.h> #include <stdlib.h> int main (void) { if (!fork()) { execl ("./main", "main", NULL); } sleep (50); return 0; } Your process will be "zombie" for 50 seconds. And during this time you may obtain any information about this process in /proc filesystem. Good luck! On Сбт, Фев 03, 2007 at 04:11:18 -0500, Robert P. J. Day wrote: > > perhaps i'm missing the point here but, for those of you who have a > copy of robert love's kernel book, on p. 260, he demonstrates the use > of "pmap" to examine a process' address space. but he does it on a > trivial example: > > int main() > [ > return 0; > } > > he then runs the command: > > $ cat /proc/1426/maps > > where 1426 is apparently the PID of the sample process. but how is it > that he can check that process when it would run and finish almost > immediately? or am i misreading something? > > rday > > -- > ======================================================================== > Robert P. J. Day > Linux Consulting, Training and Annoying Kernel Pedantry > Waterloo, Ontario, CANADA > > http://www.fsdev.dreamhosters.com/wiki/index.php?title=Main_Page > ======================================================================== > > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ > > -- Nikolay N. Ivanov -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/