summaryrefslogtreecommitdiffstats
path: root/osdep-linux.c
AgeCommit message (Collapse)Author
2021-01-17Look for libevent2 differently from libevent for platforms with both.Nicholas Marriott
2018-03-21Remove EVENT_* variables from environment after initializing libevent so theyNicholas Marriott
are not carried into child processes; from Henry Qin.
2016-01-19Update my email address.Nicholas Marriott
2015-11-18unused -> __unused.Nicholas Marriott
2014-11-08No need for $Id$ now.Nicholas Marriott
2014-10-21Merge branch 'obsd-master'Thomas Adam
Conflicts: Makefile cmd-list-commands.c cmd-suspend-client.c job.c tmux.h xmalloc.c
2014-04-17If pgrp fails in osdep_get_cwd, try sid. Fixes eg cat foo|less. From BalazsNicholas Marriott
Kezes.
2013-08-23Set EVENT_NOEPOLL on Linux again.Nicholas Marriott
2012-09-24Use pgrp of pty fd not pid of immediate child when recovering current workingNicholas Marriott
directory (like current process). From Marcel Partap.
2012-07-11Remove remaining xfree calls from the portable version.Tiago Cunha
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 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-07-09Expand the Id keyword. Tiago Cunha
2011-01-13osdep-linux.cNicholas Marriott
2010-12-30epoll on Linux is broken with /dev/null so it needs to be disabled.Nicholas Marriott
Instead of adding another BROKEN_* define, move event_init into osdep-*.c.
2009-04-29Apply the make magic wand to pick an osdep-*.c file rather than using ifdefs.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-02Don't leak fd.Nicholas Marriott
2009-01-26Be more clever about picking window name.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).