diff options
| author | bje <bje> | 1998-09-12 07:54:36 +0000 | 
|---|---|---|
| committer | bje <bje> | 1998-09-12 07:54:36 +0000 | 
| commit | bebf4fe4f6ae3d8296a6b9144876d08e5de2261a (patch) | |
| tree | 0439dae49edbff8c19efefe84e4a0a1ced0a6128 | |
| parent | 515293e837c28760c8fd8192dae145c2fc2d4bf1 (diff) | |
1998-09-12  Ben Elliston  <bje@cygnus.com>
        * exit2.c (func): Return a value.
        (main): Call the right thread entry function.
| -rw-r--r-- | tests/ChangeLog | 5 | ||||
| -rw-r--r-- | tests/exit2.c | 5 | 
2 files changed, 9 insertions, 1 deletions
| diff --git a/tests/ChangeLog b/tests/ChangeLog index 08cb597..dd323d9 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,8 @@ +1998-09-12  Ben Elliston  <bje@cygnus.com> + +	* exit2.c (func): Return a value. +	(main): Call the right thread entry function. +  1998-07-22  Ben Elliston  <bje@cygnus.com>  	* exit2.c (main): Fix size of pthread_t array. diff --git a/tests/exit2.c b/tests/exit2.c index 23c4497..af906eb 100644 --- a/tests/exit2.c +++ b/tests/exit2.c @@ -12,6 +12,9 @@ func(void * arg)  {  	printf("Hello world\n");  	pthread_exit(arg); + +	/* Never reached. */ +	return 0;  }  int @@ -24,7 +27,7 @@ main(int argc, char * argv[])  	for (i = 0; i < 4; i++)  	{ -		pthread_create(&id[i], NULL, entry, (void *) i); +		pthread_create(&id[i], NULL, func, (void *) i);  	}  	/* Semantics should be the same as POSIX. Wait for the workers. */ | 
