mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Return 0 on lost server so pkill works okay if scripted.
This commit is contained in:
		
							
								
								
									
										1
									
								
								TODO
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								TODO
									
									
									
									
									
								
							@@ -48,6 +48,7 @@
 | 
				
			|||||||
-- For 0.1 --------------------------------------------------------------------
 | 
					-- For 0.1 --------------------------------------------------------------------
 | 
				
			||||||
- man page
 | 
					- man page
 | 
				
			||||||
- commands:
 | 
					- commands:
 | 
				
			||||||
 | 
						list clients (session, window, tty?)
 | 
				
			||||||
	rename sessions
 | 
						rename sessions
 | 
				
			||||||
	swap windows
 | 
						swap windows
 | 
				
			||||||
	link/copy windows
 | 
						link/copy windows
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								client.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								client.c
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
				
			|||||||
/* $Id: client.c,v 1.14 2007-10-05 14:23:28 nicm Exp $ */
 | 
					/* $Id: client.c,v 1.15 2007-10-22 13:16:36 nicm Exp $ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
					 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
				
			||||||
@@ -208,7 +208,7 @@ server_dead:
 | 
				
			|||||||
	local_done();
 | 
						local_done();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	printf("[lost server]\n");
 | 
						printf("[lost server]\n");
 | 
				
			||||||
	return (1);
 | 
						return (0);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
local_dead:
 | 
					local_dead:
 | 
				
			||||||
	/* Can't do much here. Log and die. */
 | 
						/* Can't do much here. Log and die. */
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user