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)
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.