From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp3.mail.ru (smtp3.mail.ru [94.100.179.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id ABD714696C9 for ; Tue, 14 Apr 2020 14:38:52 +0300 (MSK) From: Alexander Turenko Date: Tue, 14 Apr 2020 14:38:16 +0300 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 07/12] popen: add logging of duplicated logger fd List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cyrill Gorcunov Cc: tarantool-patches@dev.tarantool.org For debugging purposes. Part of #4031 --- src/lib/core/popen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/core/popen.c b/src/lib/core/popen.c index 089c84830..4d57cd41e 100644 --- a/src/lib/core/popen.c +++ b/src/lib/core/popen.c @@ -896,6 +896,7 @@ popen_new(struct popen_opts *opts) int old_log_fd = log_get_fd(); if (old_log_fd >= 0) { log_fd = dup_not_std_streams(old_log_fd); + say_debug("popen: duplicate logfd: %d", log_fd); if (log_fd < 0) return NULL; if (fcntl(log_fd, F_SETFL, O_CLOEXEC) != 0) { -- 2.25.0