lkml.org 
[lkml]   [2005]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Strangeness with signals
From
Date
Simon Kirby <sim@netnation.com> writes:

> On Tue, Sep 27, 2005 at 06:19:24PM -0700, Philippe Troin wrote:
>
> > The SIGWINCH and SIGCHLD signals are not generated if their
> > disposition is set to SIG_DFL. I believe SIGCONT and SIGURG also
> > behave similarly. If you want to see them from your application, you
> > have to establish a (potentially empty) signal handler.
>
> Ok, and this is what I did in the example; however, is it expected that
> it does not help to set a handler in sa_handler and call sigaction()?
> In fact, it does not matter what sa_handler is set to (it can still be
> SIG_IGN), but sa_sigaction must point to a valid handler.

As long as sa_handler (or sa_sigaction) is not SIG_DFL (which is NULL
on linux).

Phil.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-09-28 17:37    [W:0.036 / U:0.664 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site