From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,eabba00ce5f9982a,start X-Google-Attributes: gidfee84,public From: gabejones@my-dejanews.com Subject: SIGPIPE->SIGIOT on DU 4.0? Date: 1999/04/27 Message-ID: <7g4ksc$t2l$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 471482993 X-Http-Proxy: 1.0 x8.dejanews.com:80 (Squid/1.1.22) for client 209.149.85.226 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Tue Apr 27 15:25:07 1999 GMT Newsgroups: comp.unix.osf.osf1 X-Http-User-Agent: Mozilla/4.08 [en] (X11; I; OSF1 V3.2 alpha) I'm doing socket programming, and occasionally an attempt to write to a closed socket results in a SIGPIPE being thrown. No problem, I have an exception handler (using the TRY/CATCH macros) that does the right thing and gets my sockets back on track. My problem is that 1 out of every 15 times or so, I seem to get SIGIOT instead of SIGPIPE. Further, while I have a handler to deal with SIGIOT, it seems to just bypass it and I get a crash and core dump. (Is it that DU 4.0 does not convert SIGIOT to an exception?) Just doing a RAISE(pthread_exc_SIGPIPE_e) also seems to on occasion result in this behavior. Ideas, anyone? I don't know enough about signals & exceptions to know from whence a SIGIOT would come. Thanks, Gabe Jones gjones@atc.skytel.com -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own