summaryrefslogtreecommitdiffstats
path: root/share/man/man7
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2011-12-09 16:28:18 +0000
committernicm <nicm@openbsd.org>2011-12-09 16:28:18 +0000
commit23f1d67dc61e9203c2156a60f0b3eae1547c0ef3 (patch)
treee98d87a03b19af9eaf1ac39abbcb164d0200df46 /share/man/man7
parentAdd new KERN_PROC_CWD sysctl to get the current working directory of a process. (diff)
downloadwireguard-openbsd-23f1d67dc61e9203c2156a60f0b3eae1547c0ef3.tar.xz
wireguard-openbsd-23f1d67dc61e9203c2156a60f0b3eae1547c0ef3.zip
Change the way the working directory for new processes is discovered. If
default-path isn't empty, it is used. Otherwise: 1) If tmux neww is run from the command line, the working directory of the client is used. 2) Otherwise sysctl KERN_PROC_CWD is used to retrieve the current working directory of the process in the active pane. 3) If that fails, the directory where the session was created is used. Support code by Romain Francois, OpenBSD specific bits by me. Note this requires a recent userland and kernel with KERN_PROC_CWD.
Diffstat (limited to 'share/man/man7')
0 files changed, 0 insertions, 0 deletions