Do not use stderr for log file and don't call log_close when not needed.

This commit is contained in:
Nicholas Marriott
2012-05-30 15:01:21 +00:00
parent db20f2d907
commit 021e95b09f
2 changed files with 5 additions and 3 deletions

1
tmux.c
View File

@ -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);