[Tarantool-patches] [PATCH 07/12] popen: add logging of duplicated logger fd
Alexander Turenko
alexander.turenko at tarantool.org
Tue Apr 14 14:38:16 MSK 2020
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
More information about the Tarantool-patches
mailing list