Signal handling in server-client model

brnstnd at stealth.acf.nyu.edu brnstnd at stealth.acf.nyu.edu
Sun May 6 02:01:32 AEST 1990


In article <38863 at brunix.UUCP> cs222056 at cs.brown.edu (Muru Palaniappan) writes:
  [ client-server, TCP stream connection ]
> If the server or the client terminates unexpectedly (terminal interrupt
> etc.), how can the other sense this

It should receive an EOF---i.e., select() reports that the socket is
readable, and read() returns 0. Or you could dodge the issue until you
get a SIGPIPE.

---Dan



More information about the Comp.unix.questions mailing list