When sending a signal from one process to another, I also want to send a value of type long. Is that possible? I am using SIGUSR1.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sure you can, but you’ll have to send it with
sigqueue(2)instead ofkill(2). And you can send anintor asival_ptr.Establish the handler
The handler for a signal established using SA_SIGINFO
Sending an integer