mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 01:34:18 +00:00 
			
		
		
		
	Sync OpenBSD patchset 520:
Just ignore tty fd errors rather than dying, stops the server dying if the session is disconnected abrubtly (eg ssh ~.).
This commit is contained in:
		
							
								
								
									
										3
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								tty.c
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: tty.c,v 1.172 2009-11-08 23:34:47 tcunha Exp $ */
 | 
			
		||||
/* $Id: tty.c,v 1.173 2009-11-10 23:27:57 tcunha Exp $ */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
			
		||||
@@ -138,7 +138,6 @@ void
 | 
			
		||||
tty_error_callback(
 | 
			
		||||
    unused struct bufferevent *bufev, unused short what, unused void *data)
 | 
			
		||||
{
 | 
			
		||||
	fatalx("lost terminal");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user