aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-01-21 22:47:31 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-01-21 22:47:31 +0000
commit392e13534961b80984711f82230d9f34ca4a81bb (patch)
treea8f40eaba5b6b9e637fa6f469de8add9caea35f0 /tmux.h
parent9acc26711d180e45ff827d8b88b4adbf20fab949 (diff)
downloadrtmux-392e13534961b80984711f82230d9f34ca4a81bb.tar.gz
rtmux-392e13534961b80984711f82230d9f34ca4a81bb.tar.bz2
rtmux-392e13534961b80984711f82230d9f34ca4a81bb.zip
Handle SIGTERM (and kill-server which uses it), a bit more neatly - tidy up
properly and print a nicer message. Same effect though :-)
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/tmux.h b/tmux.h
index 34366f82..327552e9 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.246 2009-01-21 19:38:51 nicm Exp $ */
+/* $Id: tmux.h,v 1.247 2009-01-21 22:47:31 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -19,7 +19,7 @@
#ifndef TMUX_H
#define TMUX_H
-#define PROTOCOL_VERSION -10
+#define PROTOCOL_VERSION -11
/* Shut up gcc warnings about empty if bodies. */
#define RB_AUGMENT(x) do {} while (0)
@@ -360,8 +360,9 @@ enum hdrtype {
MSG_PRINT,
MSG_READY,
MSG_RESIZE,
- MSG_UNLOCK,
+ MSG_SHUTDOWN,
MSG_SUSPEND,
+ MSG_UNLOCK,
MSG_WAKEUP,
};
@@ -794,6 +795,7 @@ struct client_ctx {
#define CCTX_DETACH 0x1
#define CCTX_EXIT 0x2
+#define CCTX_SHUTDOWN 0x4
int flags;
};