[Bug 194858] New: Utilize the kern.proc.cwd sysctl to obtain the current working directory of given process.
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Nov 6 08:52:18 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194858
Bug ID: 194858
Summary: Utilize the kern.proc.cwd sysctl to obtain the current
working directory of given process.
Product: Ports Tree
Version: Latest
Hardware: Any
OS: Any
Status: Needs Triage
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: freebsd-ports-bugs at FreeBSD.org
Reporter: btw at mail.ustc.edu.cn
Created attachment 149122
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=149122&action=edit
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
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list