Is it possible that signal handling can be done for a particular process only.
For Ex:-
2 Independent different process A & B are running in background & signal handling for SIGTERM has been done only in the code for process A. So, if I will send the SIGTERM to process B to terminate it then the signal handler function in process A will execute & I want that the signal handler will execute only when the SIGTERM is sent to process A.
Note:- I am using Linux OS.
So, is there any way for achieving the above.