Linux signals with extra information parameter

Posted by Tester on Stack Overflow See other posts from Stack Overflow or by Tester
Published on 2010-12-23T18:40:42Z Indexed on 2011/01/09 22:53 UTC
Read the original article Hit count: 154

Filed under:
|
|
|

I was to have some extra information in the callback to sa_sigaction handler, it does not seems possible.

So I was wondering if you could suggest me alternatives. Basic requirements:

  1. Function A raises an signal/event with a pointer to a struct
  2. Handler function tackles the event.
  3. The handler function would only be called on an event and a loop to wait for the event, as in select() , is undesirable.

TIA

© Stack Overflow or respective owner

Related posts about c

    Related posts about events