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:
- Function A raises an signal/event with a pointer to a struct
- Handler function tackles the event.
- The handler function would only be called on an event and a loop to wait for the event, as in select() , is undesirable.
like this ?
and on the other end:
Warning!: passing by reference might not work between different address/process spaces (I haven't tested this myself yet) so first test this between threads of the same process....
good luck :-)