mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Set EVENT_NOEPOLL on Linux again.
This commit is contained in:
		
				
					committed by
					
						
						Thomas
					
				
			
			
				
	
			
			
			
						parent
						
							570028e9c0
						
					
				
				
					commit
					d8d746b4b8
				
			@@ -84,14 +84,7 @@ osdep_get_cwd(int fd)
 | 
			
		||||
struct event_base *
 | 
			
		||||
osdep_event_init(void)
 | 
			
		||||
{
 | 
			
		||||
	/*
 | 
			
		||||
	 * On Linux, epoll doesn't work on /dev/null (yes, really).
 | 
			
		||||
	 *
 | 
			
		||||
	 * This has been commented because libevent versions up until the very
 | 
			
		||||
	 * latest (1.4 git or 2.0.10) do not handle signals properly when using
 | 
			
		||||
	 * poll or select, causing hangs.
 | 
			
		||||
	 * 
 | 
			
		||||
	 */
 | 
			
		||||
	/* setenv("EVENT_NOEPOLL", "1", 1); */
 | 
			
		||||
	/* On Linux, epoll doesn't work on /dev/null (yes, really). */
 | 
			
		||||
	setenv("EVENT_NOEPOLL", "1", 1);
 | 
			
		||||
	return (event_init());
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user