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. |
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 ...
|
|||||||
|
|||
|
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 |
| Sponsored Links |
|
|||
|
Re: Signal Handling in UNIX
All signals are defined in header file
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. |
|
|||
|
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!" |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| on unix | palakollu | Unix/Linux | 2 | 06-24-2006 01:46 PM |