mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Apple appear to have fixed kqueue in some OS X version (will wonder never
cease!) so use it since it appears to be faster.
This commit is contained in:
		@@ -93,15 +93,19 @@ osdep_event_init(void)
 | 
			
		||||
{
 | 
			
		||||
	struct event_base	*base;
 | 
			
		||||
 | 
			
		||||
#ifndef __MAC_10_7
 | 
			
		||||
	/*
 | 
			
		||||
	 * On OS X, kqueue and poll are both completely broken and don't
 | 
			
		||||
	 * work on anything except socket file descriptors (yes, really).
 | 
			
		||||
	 */
 | 
			
		||||
	setenv("EVENT_NOKQUEUE", "1", 1);
 | 
			
		||||
	setenv("EVENT_NOPOLL", "1", 1);
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
	base = event_init();
 | 
			
		||||
#ifndef __MAC_10_7
 | 
			
		||||
	unsetenv("EVENT_NOKQUEUE");
 | 
			
		||||
	unsetenv("EVENT_NOPOLL");
 | 
			
		||||
#endif
 | 
			
		||||
	return (base);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user