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:57 +00:00
parent bf4b02cea2
commit eed7d9b473
2 changed files with 5 additions and 3 deletions

1
tmux.c
View File

@ -73,7 +73,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);