Pass user parameter to signal handler in linux

Hi
In my program, I want to use signal handler so that if signal alarm is sent to the process my function is to called.till no everything is ok.but I want to pass some parameters to signal handler.but "signal" function does not have any parameter for this. according to it's prototype:
sighandler_t signal (int signum, sighandler_t action)

Thanks for any help or guidance
I don't think you will be able to pass parameters like you said. Depending on what you want to do, you can call another function inside the signal handler. You can set some global variables or some items in shared memory that can be accessed by your signal handler.
Thanks for your quick reply
I do not know why I do not want use "Global Variable" in my programs!!
but I think this time I have to use it.

Thanks again
Topic archived. No new replies allowed.