in reply to killing a process
If I understand your description, the process you're killing is a program that your wrote? In this case, it seems to me that the best way to handle this is to have this program catch the signal that you're sending, print an appropriate message, and exit on its own. This will be much simpler and more reliable than some foreign process trying to write to the user's tty.