EmbLogic's Blog

Program to understand the working of user defined signals:SIGUSR1 and SIGUSR2.

RCS file: sigusr_signal.c,v
Working file: sigusr_signal.c
head: 1.8
branch:
locks: strict
root: 1.8
access list:
symbolic names:
keyword substitution: kv
total revisions: 8;    selected revisions: 8
description:
Code to understand the working of SIGUSR1 and SIGUSR2.
—————————-
revision 1.8    locked by: root;
date: 2014/01/27 02:23:52;  author: root;  state: Exp;  lines: +8 -3
The pid of the parent process is coming incorrect due to missing ().
The parent process is getting terminated due to SIGINT signal.
—————————-
revision 1.7
date: 2014/01/27 02:18:19;  author: root;  state: Exp;  lines: +1 -0
Prototype of the signal_handler is added.
—————————-
revision 1.6
date: 2014/01/27 02:16:46;  author: root;  state: Exp;  lines: +16 -0
Defining the body of the signal handler that is invoked when a SIGUSR1 and SIGUSR2 is received.
—————————-
revision 1.5
date: 2014/01/27 02:00:48;  author: root;  state: Exp;  lines: +15 -2
After fork() system call,inside the child process:A signal is sent to the parent process
using kill() system call.
—————————-
revision 1.4
date: 2014/01/27 01:38:47;  author: root;  state: Exp;  lines: +11 -0
Installing a signal handler for SIGUSR1 and SIGUSR2.
Header file:<stdlib.h> is included to support exit() function.
—————————-
revision 1.3
date: 2014/01/27 01:32:49;  author: root;  state: Exp;  lines: +3 -1
Header file:<unistd.h> is included to support fork() system call.
—————————-
revision 1.2
date: 2014/01/27 01:30:39;  author: root;  state: Exp;  lines: +1 -0
Header file:<signal.h> is included to support various signal names.
—————————-
revision 1.1
date: 2014/01/27 01:30:08;  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>