When sync'ing logfile, also flush it.
When the logfile is set to sync, the actual sync occurs whenever the log file is flushed. If the log file is not also set to flush, no syncing occurs.
This commit is contained in:
		
							parent
							
								
									031b009ea6
								
							
						
					
					
						commit
						881a620b4d
					
				| 
						 | 
				
			
			@ -988,6 +988,7 @@ configServerFlags(XF86ConfFlagsPtr flagsconf, XF86OptionPtr layoutopts)
 | 
			
		|||
	    } else if (!xf86NameCmp(s,"sync")) {
 | 
			
		||||
		xf86Msg(X_CONFIG, "Syncing logfile enabled\n");
 | 
			
		||||
		xf86Info.log = LogSync;
 | 
			
		||||
		LogSetParameter(XLOG_FLUSH, TRUE);
 | 
			
		||||
		LogSetParameter(XLOG_SYNC, TRUE);
 | 
			
		||||
	    } else {
 | 
			
		||||
		xf86Msg(X_WARNING,"Unknown Log option\n");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue