Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion testing/ostest/sighand.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ static void wakeup_action(int signo, siginfo_t *info, void *ucontext)
ASSERT(false);
}

/* Check sigprocmask */
/* Check sigprocmask. SIGKILL and SIGSTOP cannot be blocked (POSIX), so
* they are not part of the mask: do not compare them.
*/

sigfillset(&allsigs);
status = sigprocmask(SIG_SETMASK, NULL, &oldset);
Expand All @@ -124,6 +126,11 @@ static void wakeup_action(int signo, siginfo_t *info, void *ucontext)
ASSERT(false);
}

sigdelset(&allsigs, SIGKILL);
sigdelset(&allsigs, SIGSTOP);
sigdelset(&oldset, SIGKILL);
sigdelset(&oldset, SIGSTOP);

if (!sigset_isequal(&oldset, &allsigs))
{
ASSERT(false);
Expand Down Expand Up @@ -179,6 +186,7 @@ static FAR void *waiter_main(FAR void *arg)
if (status != 0)
{
int error = errno;

if (error == EINTR)
{
printf("waiter_main: sem_wait() successfully interrupted by "
Expand Down
Loading