ILE C/C++ Programmer's Guide

Stacking Signal Handlers

You can stack the signal handlers yourself using the value returned by signal(), as shown in the following figure.

Figure 181. Stacking Signal Handlers




void (*func1) ();
void (*func2) ();
func1 = signal ( SIGINT, &handler2 ); /*func1 contains the address of */
/*a previous signal handler or */
/*SIG_DFL if no handler has been */
/*defined. */
func2 = signal ( SIGINT, func1); /*func2 contains the address of */
/*handler2. */


[ Top of Page | Previous Page | Next Page | Table of Contents ]