summaryrefslogtreecommitdiff
path: root/regress/lib/libc_r/cancel/cancel.c
diff options
context:
space:
mode:
Diffstat (limited to 'regress/lib/libc_r/cancel/cancel.c')
-rw-r--r--regress/lib/libc_r/cancel/cancel.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/regress/lib/libc_r/cancel/cancel.c b/regress/lib/libc_r/cancel/cancel.c
index 6f9359246d2..4c70a229bcd 100644
--- a/regress/lib/libc_r/cancel/cancel.c
+++ b/regress/lib/libc_r/cancel/cancel.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cancel.c,v 1.4 2002/02/17 04:33:33 marc Exp $ */
+/* $OpenBSD: cancel.c,v 1.5 2002/02/17 05:44:38 marc Exp $ */
/* David Leonard <d@openbsd.org>, 1999. Public Domain. */
#include <pthread.h>
@@ -111,6 +111,7 @@ child2fn(arg)
message_seen++;
c2_in_test = 0;
ASSERT(message_seen == 1);
+ v();
}
PANIC("child 2");
}
@@ -162,7 +163,7 @@ main()
p();
/* Give thread 2 a chance to go through its deferred loop once */
- sleep(2);
+ p();
CHECKr(pthread_cancel(child2));
p();