aboutsummaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-01-02 10:52:56 +0000
committerRoland McGrath <roland@gnu.org>2002-01-02 10:52:56 +0000
commit05dea6d10c72d7604d289eca4d39dadeda7e88ac (patch)
treed8ec85083fef50360592c88b5238527e66da9661 /hurd
parent2fee5d8b20b1004e117a89ce63df2427fcabc342 (diff)
downloadglibc-05dea6d10c72d7604d289eca4d39dadeda7e88ac.zip
glibc-05dea6d10c72d7604d289eca4d39dadeda7e88ac.tar.gz
glibc-05dea6d10c72d7604d289eca4d39dadeda7e88ac.tar.bz2
* sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
__sigisemptyset. Don't use MASK uninitialized. * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset. * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset. * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember, __sigdelset, __sigaddset, __sigorset.
Diffstat (limited to 'hurd')
-rw-r--r--hurd/hurdinit.c2
-rw-r--r--hurd/hurdsig.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/hurd/hurdinit.c b/hurd/hurdinit.c
index 7a57031..c7f9d42 100644
--- a/hurd/hurdinit.c
+++ b/hurd/hurdinit.c
@@ -166,7 +166,7 @@ _hurd_new_proc_init (char **argv,
while. Eventually it probably makes most sense for the exec server to
mask out EXEC_SIGTRAP so the debugged program is closer to not being
able to tell it's being debugged. */
- if (_hurdsig_traced
+ if (!__sigisemptyset (&_hurdsig_traced)
#ifdef EXEC_SIGTRAP
&& !(_hurd_exec_flags & EXEC_SIGTRAP)
#endif
diff --git a/hurd/hurdsig.c b/hurd/hurdsig.c
index 34b28d9..40b570b 100644
--- a/hurd/hurdsig.c
+++ b/hurd/hurdsig.c
@@ -588,7 +588,7 @@ _hurd_internal_post_signal (struct hurd_sigstate *ss,
handler = ss->preemptors ? try_preemptor (ss->preemptors) : SIG_ERR;
/* If no thread-specific preemptor, check for a global one. */
- if (handler == SIG_ERR && (__sigmask (signo) & _hurdsig_preempted_set))
+ if (handler == SIG_ERR && __sigismember (signo, _hurdsig_preempted_set))
{
__mutex_lock (&_hurd_siglock);
handler = try_preemptor (_hurdsig_preemptors);
@@ -689,7 +689,7 @@ _hurd_internal_post_signal (struct hurd_sigstate *ss,
if (__sigmask (signo) & STOPSIGS)
/* Stop signals clear a pending SIGCONT even if they
are handled or ignored (but not if preempted). */
- ss->pending &= ~sigmask (SIGCONT);
+ __sigdelset (&ss->pending, SIGCONT);
else
{
if (signo == SIGCONT)
@@ -928,11 +928,11 @@ _hurd_internal_post_signal (struct hurd_sigstate *ss,
/* Block requested signals while running the handler. */
scp->sc_mask = ss->blocked;
- ss->blocked |= ss->actions[signo].sa_mask;
+ __sigorset (&ss->blocked, &ss->blocked, &ss->actions[signo].sa_mask);
/* Also block SIGNO unless we're asked not to. */
if (! (ss->actions[signo].sa_flags & (SA_RESETHAND | SA_NODEFER)))
- ss->blocked |= __sigmask (signo);
+ __sigaddset (&ss->blocked, signo);
/* Reset to SIG_DFL if requested. SIGILL and SIGTRAP cannot
be automatically reset when delivered; the system silently