mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Use pgrp of pty fd not pid of immediate child when recovering current working
directory (like current process). From Marcel Partap.
This commit is contained in:
		@@ -31,7 +31,7 @@
 | 
			
		||||
 | 
			
		||||
struct kinfo_proc	*cmp_procs(struct kinfo_proc *, struct kinfo_proc *);
 | 
			
		||||
char			*osdep_get_name(int, char *);
 | 
			
		||||
char			*osdep_get_cwd(pid_t);
 | 
			
		||||
char			*osdep_get_cwd(int);
 | 
			
		||||
struct event_base	*osdep_event_init(void);
 | 
			
		||||
 | 
			
		||||
#ifndef nitems
 | 
			
		||||
@@ -121,7 +121,7 @@ error:
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
char *
 | 
			
		||||
osdep_get_cwd(pid_t pid)
 | 
			
		||||
osdep_get_cwd(int fd)
 | 
			
		||||
{
 | 
			
		||||
	return (NULL);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user