summaryrefslogtreecommitdiffstats
path: root/tmux.1
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2011-03-03 08:51:47 +0000
committerNicholas Marriott <nicm@openbsd.org>2011-03-03 08:51:47 +0000
commit7954126dcd6ec52020fde92c8be997482fa55ab6 (patch)
tree9e6dd32471652321eae8d53661d8ac473f993d97 /tmux.1
parentce91520e12d1f7460fb52df27b38a3e2937e325f (diff)
Add a -P option to detach to HUP the client's parent process (usually
causing it to exit as well).
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.19
1 files changed, 8 insertions, 1 deletions
diff --git a/tmux.1 b/tmux.1
index 36253d17..7d42984a 100644
--- a/tmux.1
+++ b/tmux.1
@@ -550,10 +550,17 @@ If no server is started,
.Ic attach-session
will attempt to start it; this will fail unless sessions are created in the
configuration file.
-.It Ic detach-client Op Fl t Ar target-client
+.It Xo Ic detach-client
+.Op Fl P
+.Op Fl t Ar target-client
+.Xc
.D1 (alias: Ic detach )
Detach the current client if bound to a key, or the specified client with
.Fl t .
+If
+.Fl P
+is given, send SIGHUP to the parent process of the client, typically causing it
+to exit.
.It Ic has-session Op Fl t Ar target-session
.D1 (alias: Ic has )
Report an error and exit with 1 if the specified session does not exist.