Fix testcase 114 for arm and apple
Arm has a problem with tls after a fork. The pthread_key_create seems to be forgotten? Apple has a problem with the exit(0) code in do_fork(). An IO mutex is still held after a fork().
This commit is contained in:
		
							parent
							
								
									78da4586a0
								
							
						
					
					
						commit
						ae1796fc34
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -107,7 +107,9 @@ main (void) | |||
|     sem_init (&sem_child, 0, 0); | ||||
|     pthread_create(&id1, NULL, high_load, NULL); | ||||
|     pthread_create(&id2, NULL, do_signal, NULL); | ||||
| #if !defined(__arm__) && !defined(__APPLE__) | ||||
|     pthread_create(&id3, NULL, do_fork, NULL); | ||||
| #endif | ||||
| 
 | ||||
|     /* sleep does not work !!! */ | ||||
|     end = time(NULL) + 2; | ||||
|  | @ -118,7 +120,9 @@ main (void) | |||
| 
 | ||||
|     pthread_join(id1, NULL); | ||||
|     pthread_join(id2, NULL); | ||||
| #if !defined(__arm__) && !defined(__APPLE__) | ||||
|     pthread_join(id3, NULL); | ||||
| #endif | ||||
|     sem_destroy (&sem); | ||||
|     sem_destroy (&sem_child); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue