summaryrefslogtreecommitdiffstats
path: root/procname.c
AgeCommit message (Collapse)Author
2016-10-10Loads more static, except for cmd-*.c and window-*.c.nicm
2016-01-19I no longer use my SourceForge address so replace it.nicm
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt
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)
2014-07-04Track whether a process is a zombie or not yet fully built via flagsguenther
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@
2014-04-16Memory leak in error path and unnecessary assignment, from clang.nicm
2013-10-10Remove the KERN_PROC_CWD the proc_current_path format (which is the onlynicm
thing that uses it now).
2012-12-18We no longer use struct eproc for kinfo_proc in sysctl.h so theremillert
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@
2012-09-24Use pgrp of pty fd not pid of immediate child when recovering currentNicholas Marriott
working directory (like current process). From Marcel Partap.
2011-12-09Change the way the working directory for new processes is discovered. IfNicholas Marriott
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.
2011-04-10Switch back from KERN_PROC2/kinfo_proc2 to KERN_PROC/kinfo_proc nowPhilip Guenther
that we've got name we want for the API we want "ZAP!" deraadt@
2009-12-24Use sysctl() KERN_PROC2 instead of KERN_PROC, as the latter's ABIPhilip Guenther
is sensitive to changes in struct proc. fixes for warnings and ok nicm@
2009-08-09Nuke a dead variable found with clang and an unused declaration with lint.Nicholas Marriott
2009-08-03Split the comparison into a function to make this code smaller and moreNicholas Marriott
understandable.
2009-07-26Go to the next if the current best process is replaced, don't keep comparing itNicholas Marriott
with itself. Also fix process name comparison.
2009-06-26Also #ifndef nitems here, caught by Thomas Jeunet.Nicholas Marriott
2009-06-01Import tmux, a terminal multiplexor allowing (among other things) a singleNicholas Marriott
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