mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 01:34:18 +00:00 
			
		
		
		
	Do not allow pipe-pane on dead panes, from Anindya Mukherjee, GitHub
issue 3174.
This commit is contained in:
		@@ -68,6 +68,12 @@ cmd_pipe_pane_exec(struct cmd *self, struct cmdq_item *item)
 | 
			
		||||
	struct format_tree		*ft;
 | 
			
		||||
	sigset_t			 set, oldset;
 | 
			
		||||
 | 
			
		||||
	/* Do nothing if pane is dead. */
 | 
			
		||||
	if (wp->fd == -1 || (wp->flags & PANE_EXITED)) {
 | 
			
		||||
		cmdq_error(item, "target pane has exited");
 | 
			
		||||
		return (CMD_RETURN_ERROR);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/* Destroy the old pipe. */
 | 
			
		||||
	old_fd = wp->pipe_fd;
 | 
			
		||||
	if (wp->pipe_fd != -1) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user