Path: utzoo!censor!comspec!humvax!becker!geac!jtsv16!uunet!cs.utexas.edu!usc!rutgers!cmcl2!stealth.acf.nyu.edu!brnstnd From: brnstnd@stealth.acf.nyu.edu Newsgroups: comp.unix.questions Subject: Re: Signal handling in server-client model Message-ID: <27943:May516:01:3290@stealth.acf.nyu.edu> Date: 5 May 90 16:01:32 GMT References: <38863@brunix.UUCP> Reply-To: brnstnd@stealth.acf.nyu.edu (Dan Bernstein) Distribution: usa Organization: IR Lines: 10 In article <38863@brunix.UUCP> cs222056@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