diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-02-21 02:34:35 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-02-21 02:34:35 +0100 |
commit | 2ec583b0e9d55120e2538c2b8bacb292b6d3dada (patch) | |
tree | 4ca3f18e216c181ac452ff64652f1b999e874c7c /sysdeps/mach/hurd/sigpending.c | |
parent | c2fb0b60d1a90e8aeab2e2a90ab818bea30c617f (diff) |
Global signal dispositions.
Although they should not change the
default behaviors of signals for cthread programs, these patches add
new functions which can be used by libpthread to enable
POSIX-conforming behavior of signals on a per-thread basis.
e407ae3 Hurd signals: implement global signal dispositions
38eb4b3 Hurd signals: provide a sigstate destructor
344dfd6 Hurd signals: fix sigwait() for global signals
fb055f2 Hurd signals: fix global untraced signals.
Diffstat (limited to 'sysdeps/mach/hurd/sigpending.c')
-rw-r--r-- | sysdeps/mach/hurd/sigpending.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sysdeps/mach/hurd/sigpending.c b/sysdeps/mach/hurd/sigpending.c index 84ac927144..f582d45a55 100644 --- a/sysdeps/mach/hurd/sigpending.c +++ b/sysdeps/mach/hurd/sigpending.c @@ -1,4 +1,5 @@ -/* Copyright (C) 1991, 1993, 1994, 1995, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1993, 1994, 1995, 1997, 2011 + Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -38,9 +39,9 @@ sigpending (set) } ss = _hurd_self_sigstate (); - __spin_lock (&ss->lock); - pending = ss->pending; - __spin_unlock (&ss->lock); + _hurd_sigstate_lock (ss); + pending = _hurd_sigstate_pending (ss); + _hurd_sigstate_unlock (ss); *set = pending; return 0; |