aboutsummaryrefslogtreecommitdiff
path: root/procname.c
Commit message (Collapse)AuthorAge
* Change the way the working directory for new processes is discovered. IfNicholas Marriott2011-12-09
| | | | | | | | | | | | | | | | 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.
* Switch back from KERN_PROC2/kinfo_proc2 to KERN_PROC/kinfo_proc nowPhilip Guenther2011-04-10
| | | | | | that we've got name we want for the API we want "ZAP!" deraadt@
* Use sysctl() KERN_PROC2 instead of KERN_PROC, as the latter's ABIPhilip Guenther2009-12-24
| | | | | | is sensitive to changes in struct proc. fixes for warnings and ok nicm@
* Nuke a dead variable found with clang and an unused declaration with lint.Nicholas Marriott2009-08-09
|
* Split the comparison into a function to make this code smaller and moreNicholas Marriott2009-08-03
| | | | understandable.
* Go to the next if the current best process is replaced, don't keep comparing itNicholas Marriott2009-07-26
| | | | with itself. Also fix process name comparison.
* Also #ifndef nitems here, caught by Thomas Jeunet.Nicholas Marriott2009-06-26
|
* Import tmux, a terminal multiplexor allowing (among other things) a singleNicholas Marriott2009-06-01
terminal to be switched between several different windows and programs displayed on one terminal be detached from one terminal and moved to another. ok deraadt pirofti