aboutsummaryrefslogtreecommitdiff
path: root/procname.c
Commit message (Collapse)AuthorAge
* Restore pane_current_path format from portable tmux, it is no longernicm2020-04-08
| | | | used by default and is very useful.
* Loads more static, except for cmd-*.c and window-*.c.nicm2016-10-10
|
* I no longer use my SourceForge address so replace it.nicm2016-01-19
|
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-16
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* Track whether a process is a zombie or not yet fully built via flagsguenther2014-07-04
| | | | | | | | | | | PS_{ZOMBIE,EMBRYO} on the process instead of peeking into the process's thread data. This eliminates the need for the thread-level SDEAD state. Change kvm_getprocs() (both the sysctl() and kvm backends) to report the "most active" scheduler state for the process's threads. tweaks kettenis@ feedback and ok matthew@
* Memory leak in error path and unnecessary assignment, from clang.nicm2014-04-16
|
* Remove the KERN_PROC_CWD the proc_current_path format (which is the onlynicm2013-10-10
| | | | thing that uses it now).
* We no longer use struct eproc for kinfo_proc in sysctl.h so theremillert2012-12-18
| | | | | | | is no direct need for sys/proc.h or sys/resource.h. Some consumers of kinfo_proc need these for the proc flags and rlimit defines like RLIM_INF so add the appropriate includes to them. OK deraadt@ sthen@
* Use pgrp of pty fd not pid of immediate child when recovering currentNicholas Marriott2012-09-24
| | | | working directory (like current process). From Marcel Partap.
* 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