fork() handling

ngaix.gif (1051 bytes) Restriction: This is supported on AIX and Solaris only.

When a process calls fork(), an exact copy of that process is created. The process that forked is called the parent, and the new process is called the child. If a process being debugged forks, the Distributed Debugger stops both the parent and child processes, and opens a dialog box that lets you choose whether to continue debugging the parent process or switch to the child process.

Whichever choice you make (Parent or Child), the Distributed Debugger ignores the process you did not choose, and allows it to continue running. The debugger will halt the selected process, which then allows you to perform debugging activities, such as adding a breakpoint. The process remains halted until explicitly restarted .Breakpoints set in the process you did not choose are ignored. Execution stops in the process that you chose to debug.

If the process you did not choose performs an exec(), the Distributed Debugger will allow
you to debug the new process. Look under the exec() handling related reference for additional information.

Related References
exec() handling
system() handling