summaryrefslogtreecommitdiffstats
path: root/proc.c
diff options
context:
space:
mode:
authornicm <nicm>2017-06-04 08:25:57 +0000
committernicm <nicm>2017-06-04 08:25:57 +0000
commitadf5628087829bed2eff635760d7cc456dd1e558 (patch)
treeceb0745ca673fb84658b4ba573ff6b3a04926b5f /proc.c
parent184039044a92b83f38b880b0a4a1c5ebc272af9c (diff)
Support SIGUSR2 to stop and start logging for an existing server. Also
we currently only have two log levels so just use -v and -vv rather than -v and -vvvv, and clarify the man page entry for -v.
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/proc.c b/proc.c
index bc27b4ff..1af72fec 100644
--- a/proc.c
+++ b/proc.c
@@ -265,3 +265,9 @@ proc_kill_peer(struct tmuxpeer *peer)
{
peer->flags |= PEER_BAD;
}
+
+void
+proc_toggle_log(struct tmuxproc *tp)
+{
+ log_toggle(tp->name);
+}