mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Sync OpenBSD patchset 1014:
Call bufferevent_free before closing file descriptor associated with it or bugs in $EventMechanism on $OtherOS makes libevent get it's knickers in a twist. From Dylan Alex Simon.
This commit is contained in:
		@@ -337,8 +337,8 @@ server_destroy_pane(struct window_pane *wp)
 | 
			
		||||
 | 
			
		||||
	old_fd = wp->fd;
 | 
			
		||||
	if (wp->fd != -1) {
 | 
			
		||||
		close(wp->fd);
 | 
			
		||||
		bufferevent_free(wp->event);
 | 
			
		||||
		close(wp->fd);
 | 
			
		||||
		wp->fd = -1;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user