2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.

 

Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

c9/sighandler.c File Reference


Detailed Description

Signal-handler example [Sec. 9.1.7].

Definition in file sighandler.c.

Go to the source code of this file.

Functions

void handler (int signum)
int main (void)

Variables

volatile sig_atomic_t gotsig = -1


Function Documentation

void handler int  signum  )  [static]
 

Definition at line 26 of file sighandler.c.

References gotsig.

Referenced by main().

int main void   ) 
 

Definition at line 31 of file sighandler.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, exit(), gotsig, handler(), sigaction::sa_flags, sigaction::sa_handler, sigaction(), sleep(), and time().


Variable Documentation

volatile sig_atomic_t gotsig = -1 [static]
 

Definition at line 24 of file sighandler.c.

Referenced by handler(), and main().


Generated on Fri Apr 23 10:57:11 2004 for AUP2 Example Source by doxygen 1.3.1