mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 01:34:18 +00:00 
			
		
		
		
	Fix exit message if creating socket fails.
This commit is contained in:
		
							
								
								
									
										6
									
								
								server.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								server.c
									
									
									
									
									
								
							@@ -228,10 +228,10 @@ server_start(struct tmuxproc *client, int flags, struct event_base *base,
 | 
			
		||||
 | 
			
		||||
	if (cause != NULL) {
 | 
			
		||||
		if (c != NULL) {
 | 
			
		||||
			cmdq_append(c, cmdq_get_error(cause));
 | 
			
		||||
			c->exit_message = cause;
 | 
			
		||||
			c->flags |= CLIENT_EXIT;
 | 
			
		||||
		}
 | 
			
		||||
		free(cause);
 | 
			
		||||
		} else
 | 
			
		||||
			free(cause);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	evtimer_set(&server_ev_tidy, server_tidy_event, NULL);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user