From: Mark Eichin Date: Fri, 1 Jul 1994 20:03:47 +0000 (+0000) Subject: fix use of sigblock X-Git-Tag: krb5-1.0-beta4.2~169 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=446a674a910bf2d5adfe9e0c6a8402bf1d6cc1fb;p=krb5.git fix use of sigblock git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3941 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin/server/ChangeLog b/src/kadmin/server/ChangeLog index a1ad0ea12..5bd9259ce 100644 --- a/src/kadmin/server/ChangeLog +++ b/src/kadmin/server/ChangeLog @@ -1,3 +1,8 @@ +Fri Jul 1 16:01:02 1994 Mark Eichin (eichin@cygnus.com) + + * adm_listen.c: if USE_SIGPROCMASK, replace sigblock et al. + configure.in: CHECK_SIGPROCMASK. + Wed Jun 29 00:25:29 1994 Tom Yu (tlyu at dragons-lair) * adm_server.c: fixed error table calls to use krb5_init_ets diff --git a/src/kadmin/server/adm_listen.c b/src/kadmin/server/adm_listen.c index df00c5ee3..14adaf745 100644 --- a/src/kadmin/server/adm_listen.c +++ b/src/kadmin/server/adm_listen.c @@ -39,6 +39,15 @@ static char rcsid_adm_listen[] = #include #include +#ifdef USE_SIGPROCMASK +/* fake sigmask, sigblock, sigsetmask */ +#include +#define sigmask(x) (1L<<(x)-1) +#define sigsetmask(x) sigprocmask(SIG_SETMASK,&x,NULL) +static int _fake_sigstore; +#define sigblock(x) (_fake_sigstore=x,sigprocmask(SIG_BLOCK,&_fake_sigstore,0)) +#endif + #ifndef sigmask #define sigmask(m) (1 <<((m)-1)) #endif