mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 17:24:18 +00:00 
			
		
		
		
	Use utempter to update utmp if it's around for configure, from madmaverick9 at
roxxmail dot eu.
This commit is contained in:
		@@ -361,6 +361,9 @@ server_destroy_pane(struct window_pane *wp)
 | 
			
		||||
 | 
			
		||||
	old_fd = wp->fd;
 | 
			
		||||
	if (wp->fd != -1) {
 | 
			
		||||
#ifdef HAVE_UTEMPTER
 | 
			
		||||
		utempter_remove_record(wp->fd);
 | 
			
		||||
#endif
 | 
			
		||||
		bufferevent_free(wp->event);
 | 
			
		||||
		close(wp->fd);
 | 
			
		||||
		wp->fd = -1;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user