lwp: Rename LwpSigCatched to LwpSigCaught
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
6b6708a01b
commit
6986ac4778
1 changed files with 6 additions and 6 deletions
|
@ -42,10 +42,10 @@
|
||||||
* Signals caught so far.
|
* Signals caught so far.
|
||||||
* Access only with signals blocked!
|
* Access only with signals blocked!
|
||||||
*/
|
*/
|
||||||
static sigset_t LwpSigCatched;
|
static sigset_t LwpSigCaught;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* LwpSigCatched changed since last
|
* LwpSigCaught changed since last
|
||||||
*/
|
*/
|
||||||
static sig_atomic_t LwpSigCheck;
|
static sig_atomic_t LwpSigCheck;
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ lwpInitSigWait(sigset_t *set)
|
||||||
struct sigaction act;
|
struct sigaction act;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
sigemptyset(&LwpSigCatched);
|
sigemptyset(&LwpSigCaught);
|
||||||
|
|
||||||
act.sa_flags = 0;
|
act.sa_flags = 0;
|
||||||
act.sa_mask = *set;
|
act.sa_mask = *set;
|
||||||
|
@ -78,7 +78,7 @@ lwpInitSigWait(sigset_t *set)
|
||||||
static void
|
static void
|
||||||
lwpCatchAwaitedSig(int sig)
|
lwpCatchAwaitedSig(int sig)
|
||||||
{
|
{
|
||||||
sigaddset(&LwpSigCatched, sig);
|
sigaddset(&LwpSigCaught, sig);
|
||||||
LwpSigCheck = 1;
|
LwpSigCheck = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,9 +96,9 @@ lwpGetSig(sigset_t *set)
|
||||||
|
|
||||||
sigprocmask(SIG_BLOCK, set, &save);
|
sigprocmask(SIG_BLOCK, set, &save);
|
||||||
for (i = NSIG - 1; i > 0; i--) {
|
for (i = NSIG - 1; i > 0; i--) {
|
||||||
if (sigismember(set, i) && sigismember(&LwpSigCatched, i)) {
|
if (sigismember(set, i) && sigismember(&LwpSigCaught, i)) {
|
||||||
lwpStatus(LwpCurrent, "Got awaited signal %d", i);
|
lwpStatus(LwpCurrent, "Got awaited signal %d", i);
|
||||||
sigdelset(&LwpSigCatched, i);
|
sigdelset(&LwpSigCaught, i);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue