From: rsalz@osf.org (Rich Salz)
Subject: Re: DCE Client/Server Exceptions
Date: 4 Apr 1994 13:28:47 GMT [thread overview]
Message-ID: <2np4mf$7bh@paperboy.osf.org> (raw)
In-Reply-To: 1994Apr3.144347.27715@cgh.cgh.com
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 <pthread.h>
int cancelmode;
cancelmode = pthread_setcancel(CANCEL_OFF);
/* ...critical section here... */
if (cancelmode == CANCEL_ON)
(void)pthread_setcancel(CANCEL_ON);
/r$
next prev parent reply other threads:[~1994-04-04 13:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-04-03 14:43 DCE Client/Server Exceptions Paul Homchick
1994-04-04 12:31 ` Jon Mauney
1994-04-04 13:28 ` Rich Salz [this message]
1994-04-04 18:29 ` Seiichi Tatsukawa
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox