aboutsummaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-06-02 21:08:36 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-06-02 21:08:36 +0000
commita26f58c7c394f81c523da597f85f69d3fc8bc8ad (patch)
tree869e58ba4df84531d550002ccb2a856ed5db2577 /session.c
parentf6b86402c7fd1f4af0e4d163f22e4b9f71b2e538 (diff)
downloadrtmux-a26f58c7c394f81c523da597f85f69d3fc8bc8ad.tar.gz
rtmux-a26f58c7c394f81c523da597f85f69d3fc8bc8ad.tar.bz2
rtmux-a26f58c7c394f81c523da597f85f69d3fc8bc8ad.zip
Last bits of basic configuration file. By default in ~/.tmux.conf or specified with -f. Just a list of tmux commands executed when the server is started and before and any session/window is created.
Diffstat (limited to 'session.c')
-rw-r--r--session.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/session.c b/session.c
index 2ba32499..dc2ddce8 100644
--- a/session.c
+++ b/session.c
@@ -1,4 +1,4 @@
-/* $Id: session.c,v 1.30 2007-12-06 09:46:23 nicm Exp $ */
+/* $Id: session.c,v 1.31 2008-06-02 21:08:36 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -117,6 +117,8 @@ session_create(const char *name, const char *cmd, u_int sx, u_int sy)
}
session_select(s, 0);
+ log_debug("session %s created", s->name);
+
return (s);
}
@@ -126,6 +128,8 @@ session_destroy(struct session *s)
{
u_int i;
+ log_debug("session %s destroyed", s->name);
+
if (session_index(s, &i) != 0)
fatalx("session not found");
ARRAY_SET(&sessions, i, NULL);