aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-02-09 18:08:01 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-02-09 18:08:01 +0000
commitc9cfc9a9f356386e07e6273f91dd3d46ca076c12 (patch)
treefd4f75d10b6b32715b6626e0af2c175d3b603401 /tmux.h
parent9d90d9ad705b9059e9bfa61b86cca7744cbca53d (diff)
downloadrtmux-c9cfc9a9f356386e07e6273f91dd3d46ca076c12.tar.gz
rtmux-c9cfc9a9f356386e07e6273f91dd3d46ca076c12.tar.bz2
rtmux-c9cfc9a9f356386e07e6273f91dd3d46ca076c12.zip
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 :-/.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/tmux.h b/tmux.h
index 1c6eb8a5..86ac1da6 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.261 2009-02-09 16:11:26 nicm Exp $ */
+/* $Id: tmux.h,v 1.262 2009-02-09 18:08:01 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -612,6 +612,7 @@ TAILQ_HEAD(window_panes, window_pane);
struct window {
char *name;
struct timeval name_timer;
+ pid_t name_pid;
struct window_pane *active;
struct window_panes panes;
@@ -1519,7 +1520,7 @@ int utf8_width(u_int);
char *section_string(char *, size_t, size_t, size_t);
/* osdep-*.c */
-char *get_argv0(int, char *);
+int osdep_get_name(int, char *, pid_t *, char **);
/* buffer.c */
struct buffer *buffer_create(size_t);