Next: , Previous: , Up: Top   [Contents][Index]


13 Catching signals

MBFL provides an interface to the trap builtin that allows the execution of more than one function when a signal is received; this may sound useless, but that is it.

Function: mbfl_signal_map_signame_to_signum sigspec

Convert sigspec to the corresponding signal number, then print the number.

Function: mbfl_signal_attach sigspec handler

Append handler to the list of functions that are executed whenever sigspec is received.

Function: mbfl_signal_invoke_handlers signum

Invoke all the handlers registered for signum. This function is not meant to be used during normal scripts execution, but it may be useful to debug a script.


Next: , Previous: , Up: Top   [Contents][Index]

This document describes version 3.0.0-devel.0 of Marcos Bash Functions Library.