summaryrefslogtreecommitdiffstats
path: root/osdep-openbsd.c
AgeCommit message (Collapse)Author
2009-12-26Sync OpenBSD patchset 592:Tiago Cunha
Use sysctl() KERN_PROC2 instead of KERN_PROC, as the latter's ABI is sensitive to changes in struct proc. fixes for warnings and ok nicm@
2009-08-09Sync OpenBSD patchset 235:Tiago Cunha
Nuke a dead variable found with clang and an unused declaration with lint.
2009-08-09Sync OpenBSD patchset 214:Tiago Cunha
Split the comparison into a function to make this code smaller and more understandable.
2009-07-28Sync OpenBSD patchset 182:Tiago Cunha
Go to the next if the current best process is replaced, don't keep comparing it with itself. Also fix process name comparison.
2009-06-26#ifndef nitems.Nicholas Marriott
2009-04-29Apply the make magic wand to pick an osdep-*.c file rather than using ifdefs.Nicholas Marriott
2009-02-17-err.h.Nicholas Marriott
2009-02-13Looking up argv[0] is expensive, so just use p_comm for the window name ↵Nicholas Marriott
which is good enough. Also increase name update time to 500 ms.
2009-02-09Don't try to change the window name unless the pid of the process chosen hasNicholas Marriott
changed. Reduces CPU use. osdep-* stuff is a bit horrible now but there we go :-/.
2009-02-08More tweakery.Nicholas Marriott
2009-02-07Comment. Missing OS X headers. +TODO.Nicholas Marriott
2009-02-07Even better.Nicholas Marriott
2009-02-07Make process name guessing pick up SSTOP.Nicholas Marriott
2009-01-30Bye bye debugging.Nicholas Marriott
2009-01-27Tweak selection slightly.Nicholas Marriott
2009-01-27Don't use NULL argv.Nicholas Marriott
2009-01-27+nitems.Nicholas Marriott
2009-01-26Be more clever about picking window name.Nicholas Marriott
2009-01-20Darwin support for automatic-rename, from joshe.Nicholas Marriott
2009-01-20Try to change the window title to match the command running it in. This is doneNicholas Marriott
by reading argv[0] from the process group leader of the group that owns the tty (tcgetpgrp()). This can't be done portably so some OS-dependent code is introduced (ugh); OpenBSD, FreeBSD and Linux are supported at the moment. A new window flag, automatic-rename, is available: if this is set to off, the window name is not changed. Specifying a name with the new-window, new-session or rename-window commands will automatically set this flag to off for the window in question. To disable it entirely set the option to off globally (setw -g automatic-rename off).