EmbLogic's Blog

Catching signals SIGINT and SIGQUIT using system handler.

RCS file: SIGINTsignal.c,v
Working file: SIGINTsignal.c
head: 1.5
branch:
locks: strict
root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5;    selected revisions: 5
description:
Program to understand the functionality of signal.
In this program,signal is received and caught by the system handler.
User is intimated for the signal generated by the kernel.
—————————-
revision 1.5    locked by: root;
date: 2014/01/02 19:09:21;  author: root;  state: Exp;  lines: +3 -0
SIGKILL signal is added to test the functionality.
Ensuring that it is a special type of a message.
—————————-
revision 1.4
date: 2014/01/02 19:02:05;  author: root;  state: Exp;  lines: +4 -0
SIGQUIT signal is also added and handler function is changed.
It will display an appropriate message for the signal generated.
—————————-
revision 1.3
date: 2014/01/02 18:57:39;  author: root;  state: Exp;  lines: +1 -0
sleep() system call is introduced so that the message can be read easily.
—————————-
revision 1.2
date: 2014/01/02 18:56:20;  author: root;  state: Exp;  lines: +1 -0
Header file for supporting the signal system call is added to the program.
—————————-
revision 1.1
date: 2014/01/02 18:55:22;  author: root;  state: Exp;
Initial revision
=============================================================================

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>