The event management commands can also deal with signals as events. These 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 |