Close info file descriptor after reading
This commit is contained in:
		
							parent
							
								
									cc479ca5ac
								
							
						
					
					
						commit
						4780ec5463
					
				
							
								
								
									
										1
									
								
								main.c
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								main.c
									
									
									
									
									
								
							| @ -277,6 +277,7 @@ end: | |||||||
| 	info.i -= info.lastsep; | 	info.i -= info.lastsep; | ||||||
| 	win.bar.l[info.i] = '\0'; | 	win.bar.l[info.i] = '\0'; | ||||||
| 	win_update_bar(&win); | 	win_update_bar(&win); | ||||||
|  | 	close(info.fd); | ||||||
| 	info.fd = -1; | 	info.fd = -1; | ||||||
| 	while (waitpid(-1, NULL, WNOHANG) > 0); | 	while (waitpid(-1, NULL, WNOHANG) > 0); | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Bastien Dejean
						Bastien Dejean