devmand: don't die so easily
Change-Id: I048a975fb35dadf07ebb5d067d76fb1d1892bda8
This commit is contained in:
		
							parent
							
								
									b539f91aba
								
							
						
					
					
						commit
						fa901649a3
					
				| @ -886,6 +886,15 @@ static void main_loop() | ||||
| 
 | ||||
| 		fd = fopen(ev_path, "r"); | ||||
| 		if (fd == NULL) { | ||||
| 			/*
 | ||||
| 			 * ENFILE is a temporary failure, often caused by | ||||
| 			 * running the test set.  Don't die from that.. | ||||
| 			 */ | ||||
| 			if (errno == ENFILE) { | ||||
| 				usleep(50000); | ||||
| 				continue; | ||||
| 			} | ||||
| 
 | ||||
| 			fprintf(stderr,"devmand error: could not open event " | ||||
| 				"file %s bailing out\n", ev_path); | ||||
| 			cleanup(); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 David van Moolenbroek
						David van Moolenbroek