summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Irofti <pirofti@cvs.openbsd.org>2018-04-27 11:31:18 +0000
committerPaul Irofti <pirofti@cvs.openbsd.org>2018-04-27 11:31:18 +0000
commit75946ba00d700a6d212f646285fe34218a673478 (patch)
tree899aa8c1ce88d84c9bdcdf9544a6ad2e24392c5c
parent334e76135fa83b36244fb6964a2af8da67bdc4cd (diff)
Fix sem_timedwait regress test. Needs SA_RESTART to block now.
Hug and OK guenther@
-rw-r--r--regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c b/regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c
index 13a1d34a181..203d41c5e61 100644
--- a/regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c
+++ b/regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sem_timedwait.c,v 1.2 2014/01/22 04:31:45 guenther Exp $ */
+/* $OpenBSD: sem_timedwait.c,v 1.3 2018/04/27 11:31:17 pirofti Exp $ */
/*
* Martin Pieuchot <mpi@openbsd.org>, 2011. Public Domain.
*/
@@ -55,7 +55,7 @@ main(int argc, char **argv)
memset(&sa, 0, sizeof sa);
sa.sa_handler = &handler;
sigemptyset(&sa.sa_mask);
- sa.sa_flags = 0;
+ sa.sa_flags = SA_RESTART;
if (sigaction(SIGUSR1, &sa, NULL))
err(1, "sigaction");
posted = 0;