Re: [LIP] signal ( ) versus sigaction ( )

Binand Sethumadhavan <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Message-ID <[email protected]>
On Fri, Feb 20, 2004 at 11:25:54PM +0530, Shantanu Kumar wrote:
> Could anybody please explain the difference between signal() and
> sigaction() function calls? I have found independent instances where
> these two are used for identical tasks and any potential differences
> weren't obvious to me.

signal() is ISO C, sigaction() is POSIX.

sigaction() allows much finer control on signals. Get hold of APUE
and go through the chapter on signals. The handler function used with
sigaction() has a different prototype than the one used with signal() -
a whole lot of additional information is available to the signal handler
function when you use sigaction().

Binand

-- 
[[email protected] root]# uptime
11:55am  up 58 days,  4:49,  2 users,  load average: 1023.78, 419.92, 158.90


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.