Discussion:
[tmux:tickets] #165 Patch tmux to utilize kern.proc.cwd sysctl on FreeBSD
Tiwei Bie
2014-11-06 13:30:35 UTC
Permalink
---

** [tickets:#165] Patch tmux to utilize kern.proc.cwd sysctl on FreeBSD**

**Status:** open
**Created:** Thu Nov 06, 2014 01:30 PM UTC by Tiwei Bie
**Last Updated:** Thu Nov 06, 2014 01:30 PM UTC
**Owner:** nobody

sysctl kern.proc.cwd has been added in r274167 [1].

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 [2].

This job is done as part of JuniorJobs [3].

[1] http://svnweb.freebsd.org/base?view=revision&revision=274167
[2] http://cznic.dl.sourceforge.net/project/tmux/tmux/tmux-1.9/tmux-1.9a.tar.gz
[3] https://wiki.freebsd.org/JuniorJobs#sysctl_reporting_current_working_directory


---

Sent from sourceforge.net because tmux-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/tmux/tickets/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/tmux/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Loading...