mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		
							
								
								
									
										4
									
								
								window.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								window.c
									
									
									
									
									
								
							@@ -925,6 +925,7 @@ window_pane_spawn(struct window_pane *wp, int argc, char **argv,
 | 
			
		||||
	sigprocmask(SIG_BLOCK, &set, &oldset);
 | 
			
		||||
	switch (wp->pid = fdforkpty(ptm_fd, &wp->fd, wp->tty, NULL, &ws)) {
 | 
			
		||||
	case -1:
 | 
			
		||||
		wp->event = NULL;
 | 
			
		||||
		wp->fd = -1;
 | 
			
		||||
 | 
			
		||||
		xasprintf(cause, "%s: %s", cmd, strerror(errno));
 | 
			
		||||
@@ -1013,6 +1014,9 @@ window_pane_spawn(struct window_pane *wp, int argc, char **argv,
 | 
			
		||||
	if (wp->event == NULL)
 | 
			
		||||
		fatalx("out of memory");
 | 
			
		||||
 | 
			
		||||
	wp->pipe_off = 0;
 | 
			
		||||
	wp->flags &= ~PANE_EXITED;
 | 
			
		||||
 | 
			
		||||
	bufferevent_setwatermark(wp->event, EV_READ, 0, READ_SIZE);
 | 
			
		||||
	bufferevent_enable(wp->event, EV_READ|EV_WRITE);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user