From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Stanislav Zudin Subject: [PATCH v4 0/2] core: Non-blocking io.popen Date: Tue, 2 Jul 2019 10:36:14 +0300 Message-Id: To: tarantool-patches@freelists.org, vdavydov.dev@gmail.com, alexander.turenko@tarantool.org Cc: Stanislav Zudin List-ID: Adds nonblocking implementation of popen. The second commit contains changes made in the recent version. To be squashed after review. Branch: https://github.com/tarantool/tarantool/tree/stanztt/gh-4031-nonblocking-popen Issue: https://github.com/tarantool/tarantool/issues/4031 Stanislav Zudin (2): core: Non-blocking io.popen core: Non-blocking popen src/CMakeLists.txt | 1 + src/lib/core/CMakeLists.txt | 8 + src/lib/core/coio_popen.c | 768 ++++++++++++++++++++++++++++++++ src/lib/core/coio_popen.h | 250 +++++++++++ src/lib/core/coio_task.c | 2 + src/lua/fio.c | 306 +++++++++++++ src/lua/fio.lua | 215 +++++++++ src/lua/init.c | 2 + src/lua/lua_signal.c | 147 ++++++ src/lua/lua_signal.h | 45 ++ src/main.cc | 6 +- test/app-tap/fio_popen.test.lua | 392 ++++++++++++++++ test/app-tap/fio_popen_test1.sh | 6 + test/app-tap/fio_popen_test2.sh | 7 + test/app-tap/fio_popen_test3.sh | 5 + 15 files changed, 2159 insertions(+), 1 deletion(-) create mode 100644 src/lib/core/coio_popen.c create mode 100644 src/lib/core/coio_popen.h create mode 100644 src/lua/lua_signal.c create mode 100644 src/lua/lua_signal.h create mode 100755 test/app-tap/fio_popen.test.lua create mode 100755 test/app-tap/fio_popen_test1.sh create mode 100755 test/app-tap/fio_popen_test2.sh create mode 100755 test/app-tap/fio_popen_test3.sh -- 2.17.1