Hello,
i am using the sigaction function to handle the SIGCHLD signal.Is it possible to use a class member function as the handler function (the sa_handler member of the sigaction structure)?
The function's signature is:
void (*sa_handler)(int);
so i don't think i can use a static member function to call the actual handler function.
Being a static function would mean it would have no direct access to any class members. You would need to keep a global variable, a pointer to the object you wanted access to, which the static function would have access to, including private members.