From 8fed7fd6f601e289477c1974ae9cf552aa15d426 Mon Sep 17 00:00:00 2001 From: bje Date: Wed, 22 Jul 1998 05:01:09 +0000 Subject: 1998-07-22 Ben Elliston * exit2.c (main): Fix size of pthread_t array. --- tests/exit2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/exit2.c') diff --git a/tests/exit2.c b/tests/exit2.c index 40f218b..23c4497 100644 --- a/tests/exit2.c +++ b/tests/exit2.c @@ -17,14 +17,14 @@ func(void * arg) int main(int argc, char * argv[]) { - pthread_t id[2]; + pthread_t id[4]; int i; /* Create a few threads, make them say hello and then exit. */ for (i = 0; i < 4; i++) { - pthread_create(&id, NULL, entry, (void *) i); + pthread_create(&id[i], NULL, entry, (void *) i); } /* Semantics should be the same as POSIX. Wait for the workers. */ -- cgit v1.2.3