Let tcpd retry on errors.
This commit is contained in:
		
							parent
							
								
									50d805144c
								
							
						
					
					
						commit
						36fa006cec
					
				| @ -173,10 +173,12 @@ int main(int argc, char **argv) | |||||||
|     while (1) { |     while (1) { | ||||||
| 	if ((tcp_fd= open(tcp_device, O_RDWR)) < 0) { | 	if ((tcp_fd= open(tcp_device, O_RDWR)) < 0) { | ||||||
| 	    report(tcp_device); | 	    report(tcp_device); | ||||||
|  | #if 0 | ||||||
| 	    if (errno == ENOENT || errno == ENODEV | 	    if (errno == ENOENT || errno == ENODEV | ||||||
| 			    || errno == ENXIO) { | 			    || errno == ENXIO) { | ||||||
| 		exit(1); | 		exit(1); | ||||||
| 	    } | 	    } | ||||||
|  | #endif | ||||||
| 	    goto bad; | 	    goto bad; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ben Gras
						Ben Gras