Sun Studio 12: Debugging a Program With dbx

Understanding Signal Events

When a signal is to be delivered to a process that is being debugged, the signal is redirected to dbx by the kernel. When this happens, you usually receive a prompt. You then have two choices:

Figure 14–1 Intercepting and Cancelling the SIGINT Signal

Diagram of the normal case where the signal is delivered
and the debugging case where the signal is intercepted and cancelled by dbx.

In addition, if a certain signal is received frequently, you can arrange for dbx to forward the signal automatically because you do not want it displayed:

ignore signal # “ignore”

However, the signal is still forwarded to the process. A default set of signals is automatically forwarded in this manner (see ignore Command).