I have am building a simple software in which there are multiple processes communicating with each other using the user defined signals SIGUSR1 and SIGUSR2.
I am just curious to know what happens in a scenario like what I am describing below.
"Process-1 did send sigusr1 to process-2 using kill command and the process-2 is executing the signal-handler doing some computation. Even before process-2 completed the execution of signal handler process-1 sends sigusr1 again to process-2. What would happen. I am unable to get a proper answer for this one. I think of two possible scenarios.
- The handler being executed currently gets interrupted ? or
- The second signal would be ignored by process-2.
Please advice me.