topcat001
047c011a15
Use PATH_MAX instead of MAXPATHLEN.
2022-02-28 13:11:28 -08:00
Thomas Adam
60688afe9c
Merge branch 'obsd-master' into master
2022-02-22 20:01:11 +00:00
Thomas Adam
138ffc7cb6
Merge branch 'obsd-master' into master
2021-12-07 09:52:59 +00:00
Nicholas Marriott
a3011be0d2
Look for libevent2 differently from libevent for platforms with both.
2021-01-17 17:21:51 +00:00
Thomas Adam
b9dc855016
Merge branch 'obsd-master'
...
Conflicts:
format.c
osdep-openbsd.c
2016-10-12 09:45:49 +01:00
Thomas Adam
dc42c35f1f
Merge branch 'obsd-master'
2016-01-19 18:01:15 +00:00
Thomas Adam
df6488a470
Merge branch 'obsd-master'
2015-01-16 19:17:31 +00:00
Nicholas Marriott
747cab4281
No need for $Id$ now.
2014-11-08 12:27:43 +00:00
Thomas Adam
a131b82e95
Merge branch 'obsd-master'
...
Conflicts:
client.c
2014-08-09 20:31:36 +01:00
Thomas Adam
953c3ef47a
Merge branch 'obsd-master'
...
Conflicts:
Makefile
tmux.1
window.c
2014-04-23 11:26:11 +01:00
Nicholas Marriott
d51b4f92d7
Use open(".")/fchdir() to save and restore current directory rather than
...
getcwd()/chdir().
2013-10-05 09:14:11 +01:00
Thomas Adam
675c6b3773
Merge branch 'obsd-master'
...
Sync from OpenBSD.
2012-12-31 18:50:37 +00:00
Nicholas Marriott
5d60bc7f7c
Use pgrp of pty fd not pid of immediate child when recovering current working
...
directory (like current process). From Marcel Partap.
2012-09-24 14:05:38 +01:00
Nicholas Marriott
c1b9948525
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 use some platform specific code 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.
Idea and support code, Linux, Solaris, FreeBSD bits by Romain Francoise,
OpenBSD bits by me.
2011-12-09 16:37:29 +00:00
Tiago Cunha
391f1f08c0
Expand the Id keyword.
2011-07-09 09:42:33 +00:00
Nicholas Marriott
a6456f4db3
PatchSet 887
...
Date: 2011/04/10 04:20:59
Author: guenther
Branch: HEAD
Tag: (none)
Log:
Switch back from KERN_PROC2/kinfo_proc2 to KERN_PROC/kinfo_proc now
that we've got name we want for the API we want
2011-04-18 21:03:42 +00:00
Nicholas Marriott
e0ad1e5706
Stray blank line.
2010-12-30 20:42:39 +00:00
Nicholas Marriott
436f3b357e
epoll on Linux is broken with /dev/null so it needs to be disabled.
...
Instead of adding another BROKEN_* define, move event_init into
osdep-*.c.
2010-12-30 20:41:08 +00:00
Tiago Cunha
3cc7f2e191
Sync OpenBSD patchset 592:
...
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-12-26 23:48:37 +00:00
Tiago Cunha
2c863b9f2c
Sync OpenBSD patchset 235:
...
Nuke a dead variable found with clang and an unused declaration with lint.
2009-08-09 17:57:39 +00:00
Tiago Cunha
1127a290f4
Sync OpenBSD patchset 214:
...
Split the comparison into a function to make this code smaller and more
understandable.
2009-08-09 16:08:12 +00:00
Tiago Cunha
6043d9cf89
Sync OpenBSD patchset 182:
...
Go to the next if the current best process is replaced, don't keep comparing
it with itself. Also fix process name comparison.
2009-07-28 22:26:13 +00:00
Nicholas Marriott
81b4aca934
#ifndef nitems.
2009-06-26 15:31:15 +00:00
Nicholas Marriott
91241f1457
Apply the make magic wand to pick an osdep-*.c file rather than using ifdefs.
2009-04-29 23:07:35 +00:00
Nicholas Marriott
6d8ff85167
-err.h.
2009-02-17 18:54:14 +00:00
Nicholas Marriott
cce03e138b
Looking up argv[0] is expensive, so just use p_comm for the window name which is good enough. Also increase name update time to 500 ms.
2009-02-13 00:43:04 +00:00
Nicholas Marriott
c9cfc9a9f3
Don't try to change the window name unless the pid of the process chosen has
...
changed. Reduces CPU use.
osdep-* stuff is a bit horrible now but there we go :-/.
2009-02-09 18:08:01 +00:00
Nicholas Marriott
505b071a12
More tweakery.
2009-02-08 12:31:02 +00:00
Nicholas Marriott
028419ff4b
Comment. Missing OS X headers. +TODO.
2009-02-07 19:41:35 +00:00
Nicholas Marriott
f53bcc8798
Even better.
2009-02-07 19:24:50 +00:00
Nicholas Marriott
1d3fba86a3
Make process name guessing pick up SSTOP.
2009-02-07 19:16:25 +00:00
Nicholas Marriott
43c936cd33
Bye bye debugging.
2009-01-30 21:18:26 +00:00
Nicholas Marriott
167178aba4
Tweak selection slightly.
2009-01-27 23:10:18 +00:00
Nicholas Marriott
eafc1693ae
Don't use NULL argv.
2009-01-27 21:01:26 +00:00
Nicholas Marriott
d697090fa4
+nitems.
2009-01-27 19:44:10 +00:00
Nicholas Marriott
9cde0c2477
Be more clever about picking window name.
2009-01-26 22:57:20 +00:00
Nicholas Marriott
8c259f562b
Darwin support for automatic-rename, from joshe.
2009-01-20 22:17:53 +00:00
Nicholas Marriott
2d15f59859
Try to change the window title to match the command running it in. This is done
...
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).
2009-01-20 19:35:03 +00:00