[Tarantool-patches] [PATCH 4/7] popen: log errors if popen creation failed
Cyrill Gorcunov
gorcunov at gmail.com
Mon Mar 2 23:12:24 MSK 2020
On error path we arm diag with error but strictly
speaking some users (such as unit tests) do not have
to access diag for logging.
Thus log it explicitly for debug sake.
Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
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 ce7d7fff7..806d004bf 100644
--- a/src/lib/core/popen.c
+++ b/src/lib/core/popen.c
@@ -948,6 +948,7 @@ popen_new(struct popen_opts *opts)
return handle;
out_err:
+ diag_log();
saved_errno = errno;
popen_delete(handle);
for (i = 0; i < lengthof(pfd); i++) {
--
2.20.1
More information about the Tarantool-patches
mailing list