mirror of
https://github.com/tmux/tmux.git
synced 2025-01-07 16:28:48 +00:00
Don't close stderr in log_close to make -v/-vv work again.
This commit is contained in:
parent
5ef6d077c6
commit
ab718378cb
4
log.c
4
log.c
@ -1,4 +1,4 @@
|
|||||||
/* $Id: log.c,v 1.2 2007-07-25 23:13:18 nicm Exp $ */
|
/* $Id: log.c,v 1.3 2007-09-26 18:55:42 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -56,7 +56,7 @@ log_open(FILE *f, int facility, int level)
|
|||||||
void
|
void
|
||||||
log_close(void)
|
log_close(void)
|
||||||
{
|
{
|
||||||
if (log_stream != NULL)
|
if (log_stream != NULL && log_stream != stderr) /* XXX */
|
||||||
fclose(log_stream);
|
fclose(log_stream);
|
||||||
|
|
||||||
log_enabled = 0;
|
log_enabled = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user