hello guys !
A question. I have a perl script (a shell for our product), and I have a situation that I need from one running copy of the script to kill another copy of the shell that runs by another user, BUT I need also to send the shell to be killed, a message (so he'll no what happened). sending SIGKILL from the murderer to the victim (using perl
kill) will easly solve me the problem of killing but no message will be sent to the user, since I have a already a signal handler for SIGINT that does something else.
I tried using SIGPIPE, that did the trick (I wrote a signal handler for it), but sometimes in a random manner the signal handler is preformed twice and it seems to be connected to the SIGPIPE i send.
Anyone has a suggetion why this happens, or can offer me a better solution?
Hotshot