Debugging child process after fork (follow-fork-mode child configured)
The child process inherits signal handlers from the parent, but not the pending signal. After forking try installing the signal handler for SIGTRAP at a place in code where the child process executes after forking. If you don’t handle SIGTRAP, the default action is that the child is terminated. If you want to debug the … Read more