Thanks for the response.
yes it was typo, i fixed it. I think its a scope of my program. Somehow I have to make this handler function visible to sigtrap. But I am not getting it how to do that.
Comment on Re^2: ^CSIGINT handler "my_handler" not defined. Sigtrap is not able to find handler function.