mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Don't print exit messages when used as a login shell, requested by martynas@ a
while back.
This commit is contained in:
		
							
								
								
									
										6
									
								
								client.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								client.c
									
									
									
									
									
								
							@@ -212,6 +212,11 @@ client_main(struct client_ctx *cctx)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
out:
 | 
			
		||||
	/*
 | 
			
		||||
	 * Print exit status message, unless running as a login shell where it
 | 
			
		||||
	 * would either be pointless or irritating.
 | 
			
		||||
	 */
 | 
			
		||||
	if (!login_shell) {
 | 
			
		||||
		if (sigterm) {
 | 
			
		||||
			printf("[terminated]\n");
 | 
			
		||||
			return (1);
 | 
			
		||||
@@ -238,6 +243,7 @@ out:
 | 
			
		||||
			return (1);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int
 | 
			
		||||
client_msg_dispatch(struct client_ctx *cctx)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user