Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Signal Handling in UNIX

This is a discussion on Signal Handling in UNIX within the Unix/Linux forums, part of the Operating Systems category; Hi, Abnormal termination of a process sends a signal to let users know about the problem. But for doing this these must be trapped. What are the functions available in ...

Go Back   Geeks Talk > Operating Systems > Unix/Linux
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 06-22-2006
Contributing Member
 
Join Date: May 2006
Posts: 76
Thanks: 0
Thanked 6 Times in 5 Posts
blenda is on a distinguished road
Signal Handling in UNIX

Hi,
Abnormal termination of a process sends a signal to let users know about the problem. But for doing this these must be trapped. What are the functions available in UNIX or features in UNIX for doing signal trapping or handling?

Regards,
Blenda
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-22-2006
Contributing Member
 
Join Date: May 2006
Posts: 84
Thanks: 0
Thanked 11 Times in 7 Posts
timmy is on a distinguished road
Re: Signal Handling in UNIX

All signals are defined in header file . I have given below some of the signal functions.
kill ( ) - A system call that send a signal to a process . kill() returns 0 for a successful call, -1 otherwise and sets errno accordingly. So return value is a integer for this call.
raise( ) - sends the signal to the executing program
There are lot more signal handling functions present.
Reply With Quote
  #3 (permalink)  
Old 02-08-2007
Expert Member
 
Join Date: Sep 2006
Location: Bengalooru (Formerly called Bangalore), India
Posts: 486
Thanks: 2
Thanked 29 Times in 28 Posts
kalayama is on a distinguished road
Re: Signal Handling in UNIX

I am using this feature in my current work item. I code in C++ and there is a function library called signal.h (Unix supplied). This function library defines a lot of functions that are very handy. (I am using sigaction function).

Here's a link to the header file definition.
http://www.opengroup.org/onlinepubs/.../signal.h.html

Cheers!
Kalayama
__________________
[COLOR="Blue"][SIZE="2"]"If you are not living on the edge of your life, you are wasting space"[/SIZE][/COLOR]

Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"
Reply With Quote
Reply

  Geeks Talk > Operating Systems > Unix/Linux

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
on unix palakollu Unix/Linux 2 06-24-2006 01:46 PM


All times are GMT -4. The time now is 10:35 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved