summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2012-05-30 15:01:22 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2012-05-30 15:01:22 +0000
commit7a340789a731b7d3b07a2cb9c9636ac89389903d (patch)
treef0c6b2b2e80235a8b48d5b4118a6389fe382a72d /usr.bin/tmux/tmux.c
parenta49408ab78d5db6f78356ad920a9c62302f654d5 (diff)
Do not use stderr for log file and don't call log_close when not needed.
Diffstat (limited to 'usr.bin/tmux/tmux.c')
-rw-r--r--usr.bin/tmux/tmux.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/tmux/tmux.c b/usr.bin/tmux/tmux.c
index fd8b7b5d633..6a7692ced6e 100644
--- a/usr.bin/tmux/tmux.c
+++ b/usr.bin/tmux/tmux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.c,v 1.109 2012/05/25 08:28:10 nicm Exp $ */
+/* $OpenBSD: tmux.c,v 1.110 2012/05/30 15:01:21 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -70,7 +70,6 @@ logfile(const char *name)
{
char *path;
- log_close();
if (debug_level > 0) {
xasprintf(&path, "tmux-%s-%ld.log", name, (long) getpid());
log_open(debug_level, path);