title: Can we send parameters to a signal handler using sigaction?
body: <p>I notice that <strong><code>sigaction</code></strong> has a alternate signal handler that is called when the <strong><code>SA_SIGINFO</code></strong> flag is set. The alternate function has a <strong><code>void* context</code></strong> parameter. Now, according to the <strong><em>APUE</em></strong> book, this parameter can be cast into a <strong><code>ucontext_t</code></strong> structure. My question is that can I not cast it into any structure of my choice ? That way I could pass my own arguments into a signal handler. I noticed a post in stackoverflow stating that we just can't pass arguments to a signal handler as they are a very primitive feature. Is this possible ? </p>