Newsgroups: comp.lang.perl
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!theory.TC.Cornell.EDU!lijewski
From: lijewski@theory.TC.Cornell.EDU (Mike Lijewski)
Subject: problem w/ UNIX domain stream sockets
Message-ID: <1991Jun9.005939.9331@batcomputer.tn.cornell.edu>
Originator: lijewski@theory.TC.Cornell.EDU
Sender: news@batcomputer.tn.cornell.edu
Nntp-Posting-Host: theory.tc.cornell.edu
Organization: Cornell National Supercomputer Facility
Distribution: usa
Date: Sun, 9 Jun 1991 00:59:39 GMT


This question probably belongs in comp.unix.programmer, but since I'm
doing it in Perl, I thought I'd post here first.  I have a client-
server pair on a UNIX domain stream socket.  I've discovered that if
I interrupt the client with a ^C, that the server will die a silent
death.  This happens regardless of whether I'm using print or
syswrite and trying to catch errors.  I've written a small testcase
in C with which I get the same behaviour, so it isn't a Perl
problem.  Nevertheless, I'd appreciate it if anyone could enlighten
me as to what is going on.  I can disable keyboard generated signals
in the client, but I'd rather do it the "right" way (using setsockopt
perhaps?).

-- 
Mike Lijewski  (H)607/272-0238 (W)607/254-8686
Cornell National Supercomputer Facility
ARPA: mjlx@eagle.cnsf.cornell.edu  BITNET: mjlx@cornellf.bitnet
SMAIL:  25 Renwick Heights Road, Ithaca, NY  14850
