summaryrefslogtreecommitdiff
path: root/tests/exit2.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/exit2.c')
-rw-r--r--tests/exit2.c4
1 files changed, 2 insertions, 2 deletions
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. */