Oracle® Solaris Studio 12.4: Debugging a Program With dbx

Exit Print View

Updated: January 2015
 
 

Automatically Handling Signals

The event management commands can also deal with signals as events. The following two commands have the same effect.

(dbx) stop sig signal
(dbx) catch signal

Having the signal event is more useful if you need to associate some pre-programmed action.

(dbx) when sig SIGCLD {echo Got $sig $signame;}

In this case, make sure to first move SIGCLD to the ignore list.

(dbx) ignore SIGCLD