1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-18 05:13:56 +02:00
openwrt-packages/net/tmate/patches/010-Avoid-initializing-stdout-twice.patch
Tianling Shen ccfe1bfa50 tmate: add new package
Tmate is a fork of tmux. It provides an instant pairing solution.
For more details, see https://tmate.io.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-03-18 22:18:14 -10:00

23 lines
462 B
Diff

From 9e3e39d66ddb4a610720fa37a5683c846d2a1ba6 Mon Sep 17 00:00:00 2001
From: Nicolas Viennot <nicolas@viennot.biz>
Date: Wed, 11 Mar 2020 11:30:33 -0400
Subject: [PATCH] Avoid initializing stdout twice
Closes #190
---
log.c | 3 +++
1 file changed, 3 insertions(+)
--- a/log.c
+++ b/log.c
@@ -61,6 +61,9 @@ log_get_level(void)
void
log_open_fp(FILE *f)
{
+ if (log_file == f)
+ return;
+
if (log_file != NULL && !is_log_stdout())
fclose(log_file);