From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,2c15cd92dd7e3b61 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-04-04 06:28:47 PST Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!sol.ctr.columbia.edu!news.kei.com!bloom-beacon.mit.edu!paperboy.osf.org!rsalz From: rsalz@osf.org (Rich Salz) Newsgroups: comp.unix.osf.misc Subject: Re: DCE Client/Server Exceptions Date: 4 Apr 1994 13:28:47 GMT Organization: Open Software Foundation Message-ID: <2np4mf$7bh@paperboy.osf.org> References: <1994Apr3.144347.27715@cgh.cgh.com> NNTP-Posting-Host: sulphur.osf.org Keywords: dce rpc osf client server In <1994Apr3.144347.27715@cgh.cgh.com> paul@cgh.cgh.com (Paul Homchick) writes: >My problem is that when a client dies unexpectedly, the server thread >also seems to die. DCE tries very hard to preserve local function call semantics. So yes, if a client dies DCE will try to send the same signal over to the appropriate thread in the server. If you have a critical section in your server that you need to protect from cancellations, do this: #include int cancelmode; cancelmode = pthread_setcancel(CANCEL_OFF); /* ...critical section here... */ if (cancelmode == CANCEL_ON) (void)pthread_setcancel(CANCEL_ON); /r$