I'm trying to debug a child process under Linux. My problem is that
as soon as I step through the call to fork() and try to attach the
child process, the child has terminated and zombied. A couple of
other people suggested putting a non-terminating loop as the first
statement in the child process. I tried that and still no luck. My
last thought was to increase NPROC and recompile the kernel. With an
NPROC of 20 the child still terminates.
I'm a novice Linux(UNIX) programmer and am looking for *any*
suggestions. Successfule sections of code that I could look at would
be appreciated as well.
I'm running Linux 1.1.59, compiling with gcc, and debugging with gdb
under emacs.
Thanks,
Ron Martin