A call to 'write' from my client application returns successfully, even when the server application has terminated.

How can I tell if the server application has terminated?

Is there a different system call, like 'send', I should be using?

Thanks.