Created attachment 149122 [details] patch for tmux sysctl kern.proc.cwd has been added in r274167. This patch utilizes the new sysctl to obtain the current working directory of given process which could save a lot of overhead over kern.proc.filedesc if the given proc has a lot of open fds. The patch is against tmux-1.9a [1]. This job is done as part of JuniorJobs [2]. [1] http://cznic.dl.sourceforge.net/project/tmux/tmux/tmux-1.9/tmux-1.9a.tar.gz [2] https://wiki.freebsd.org/JuniorJobs#sysctl_reporting_current_working_directory
I'd rather not keep this patch locally. Would you please report this upstream? http://sourceforge.net/p/tmux/tickets/
(In reply to Pietro Cerutti from comment #1) > I'd rather not keep this patch locally. Would you please report this > upstream? > > http://sourceforge.net/p/tmux/tickets/ Yeah, I will!
(In reply to Pietro Cerutti from comment #1) > I'd rather not keep this patch locally. Would you please report this > upstream? > > http://sourceforge.net/p/tmux/tickets/ Accepted by upstream: https://sourceforge.net/p/tmux/tickets/165/
Great, thanks a lot! I think we can wait for the next tmux release to have it, ok?
(In reply to Pietro Cerutti from comment #4) > Great, thanks a lot! I think we can wait for the next tmux release to have > it, ok? Yeah, of course! ;-)