lijewski@theory.TC.Cornell.EDU (Mike Lijewski) (06/09/91)
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
Tom Christiansen <tchrist@convex.COM> (06/09/91)
Are you trying to write on a socket whose other end is closed and taking a SIGPIPE? --tom -- Tom Christiansen tchrist@convex.com convex!tchrist "So much mail, so little time."