Date: Thu, 06 Nov 2014 08:52:18 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 194858] New: Utilize the kern.proc.cwd sysctl to obtain the current working directory of given process. Message-ID: <bug-194858-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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@FreeBSD.org Reporter: btw@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-194858-13>