ctrl + c

rishi.shah_at_patni.com
Date: 09/30/05


Date: 29 Sep 2005 18:03:35 -0700

I am developing a project in unix/c++ in which
I have the server process that has invoked several client processes on
different machines. To terminate the server process the user will press
ctrl + c.
Now when ctrl + c is pressed, I want to signal the client processes to
terminate as well.
Now here I have the doubts.
When I press ctrl+c does the server process get a chance to process
further instructions or is it killed immediately?
Is there is some way in which I can delay the killing process so that I
can signal the clients to terminate?
The client and server have TCP connection established so I am planning
to send the signal on the TCP connection.
I cannot kill the client processes since I have not forked the
processes but invoked them using exec client(.exe) on a separate
machine.