From 7f8a2b1734e8e5233083e8b192e7c6da44ec99e4 Mon Sep 17 00:00:00 2001 From: deischen Date: Sun, 5 Dec 1999 00:48:53 +0000 Subject: Make work for sigset_t change. Also modify tests to account for recent changes to signal handling. --- lib/libc_r/test/sigwait/sigwait.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/libc_r/test/sigwait/sigwait.c') diff --git a/lib/libc_r/test/sigwait/sigwait.c b/lib/libc_r/test/sigwait/sigwait.c index 4fcaa4f..961691d 100644 --- a/lib/libc_r/test/sigwait/sigwait.c +++ b/lib/libc_r/test/sigwait/sigwait.c @@ -118,7 +118,7 @@ int main (int argc, char *argv[]) /* Initialize our signal counts. */ memset ((void *) sigcounts, 0, NSIG * sizeof (int)); - /* Setupt our wait mask. */ + /* Setup our wait mask. */ sigemptyset (&wait_mask); /* Default action */ sigaddset (&wait_mask, SIGHUP); /* terminate */ sigaddset (&wait_mask, SIGINT); /* terminate */ @@ -250,7 +250,7 @@ int main (int argc, char *argv[]) if (sigcounts[SIGHUP] != 1) printf ("FAIL: sigwait doesn't wake up for SIGHUP.\n"); /* - * Add SIGHUP to all threads pending signals. Since there is + * Add SIGHUP to the process pending signals. Since there is * a signal handler installed for SIGHUP and this signal is * blocked from the waiter thread and unblocked in the main * thread, the signal handler should be called once for SIGHUP. @@ -259,11 +259,11 @@ int main (int argc, char *argv[]) /* Release the waiter thread and allow him to run. */ pthread_mutex_unlock (&waiter_mutex); sleep (1); - if (sigcounts[SIGHUP] != 3) + if (sigcounts[SIGHUP] != 2) printf ("FAIL: sigwait doesn't return for pending SIGHUP.\n"); /* - * Repeat the above test using pthread_kill and SIGUSR1 + * Repeat the above test using pthread_kill and SIGUSR1. */ sigcounts[SIGUSR1] = 0; pthread_mutex_lock (&waiter_mutex); -- cgit v1.1