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:
Nicholas Marriott
2012-09-24 13:05:10 +00:00
parent eb0ad181e9
commit 42272dfbd5
4 changed files with 8 additions and 6 deletions

2
tmux.h
View File

@ -2277,7 +2277,7 @@ u_int utf8_split2(u_int, u_char *);
/* procname.c */
char *get_proc_name(int, char *);
char *get_proc_cwd(pid_t);
char *get_proc_cwd(int);
/* log.c */
void log_open(int, const char *);