Added sync() after logfile i/o to reduce risk of losing log entries after
e.g. crashes.
This commit is contained in:
		
							parent
							
								
									ed66b0ff02
								
							
						
					
					
						commit
						5c13385e40
					
				@ -98,6 +98,7 @@ main(int argc, char *argv[])
 | 
			
		||||
			copy(klog_fd, logfp);
 | 
			
		||||
		}
 | 
			
		||||
		fflush(logfp);
 | 
			
		||||
		sync();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return 0;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user