Debugging Multiple-Processes (forked) Programs
- Suppose that your program tries to
fork()
...
- ...and you run this under gdb.
- What shall gdb do? remain with the parent?
- If it did - how will you debug a forking program when your bug is with
the child?
- Not to mention - debugging a daemon?
Originally written by
guy keren