From 446a674a910bf2d5adfe9e0c6a8402bf1d6cc1fb Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Fri, 1 Jul 1994 20:03:47 +0000 Subject: [PATCH] fix use of sigblock git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3941 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/server/ChangeLog | 5 +++++ src/kadmin/server/adm_listen.c | 9 +++++++++ 2 files changed, 14 insertions(+) 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 -- 2.26.2