Chapter Contents

Previous

Next
Signal-Handling Functions

Using Signals Reliably

The key to writing programs that handle signals reliably is to keep close control of when signals can occur. In particular, you can simplify program logic if you avoid handling signals while main-line code is testing or modifying variables that are also accessed or modified by a signal handler.

Some of the ways you can use the library facilities to control when signals must be handled are discussed here. Note that these techniques, with the exception of the first one, are specific to the SAS/C library.


Chapter Contents

Previous

Next

Top of Page

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.