Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH v3 0/5] popen: Add ability to run external process
@ 2019-12-11  9:28 Cyrill Gorcunov
  2019-12-11  9:28 ` [Tarantool-patches] [PATCH v3 1/5] popen: Introduce a backend engine Cyrill Gorcunov
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Cyrill Gorcunov @ 2019-12-11  9:28 UTC (permalink / raw)
  To: tml

In this series we provide a way to execute external binaries
from inside of Lua scripts, control children process and
communicate with their stdin/out/err streams.

In v3 I addressed a problem of soft termination of
a child process and updated changelog for Lua interface.

Probably the best way to start read this series is
the last patch where real examples of usage are
present.

branch gorcunov/gh-4031-popen-3

Cyrill Gorcunov (5):
  popen: Introduce a backend engine
  lua/fio: Add lbox_fio_push_error as a separate helper
  popen/fio: Merge popen engine into fio internal module
  popen/fio: Add ability to run external programs
  test: Add app/popen test

 src/lib/core/CMakeLists.txt |    1 +
 src/lib/core/coio_file.c    |  115 ++++
 src/lib/core/coio_file.h    |    8 +
 src/lib/core/popen.c        | 1217 +++++++++++++++++++++++++++++++++++
 src/lib/core/popen.h        |  218 +++++++
 src/lua/fio.c               |  346 +++++++++-
 src/lua/fio.lua             |  576 +++++++++++++++++
 src/main.cc                 |    4 +
 test/app/popen.result       |  230 +++++++
 test/app/popen.test.lua     |   87 +++
 10 files changed, 2798 insertions(+), 4 deletions(-)
 create mode 100644 src/lib/core/popen.c
 create mode 100644 src/lib/core/popen.h
 create mode 100644 test/app/popen.result
 create mode 100644 test/app/popen.test.lua

-- 
2.20.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-12-11  9:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-11  9:28 [Tarantool-patches] [PATCH v3 0/5] popen: Add ability to run external process Cyrill Gorcunov
2019-12-11  9:28 ` [Tarantool-patches] [PATCH v3 1/5] popen: Introduce a backend engine Cyrill Gorcunov
2019-12-11  9:28 ` [Tarantool-patches] [PATCH v3 2/5] lua/fio: Add lbox_fio_push_error as a separate helper Cyrill Gorcunov
2019-12-11  9:28 ` [Tarantool-patches] [PATCH v3 3/5] popen/fio: Merge popen engine into fio internal module Cyrill Gorcunov
2019-12-11  9:28 ` [Tarantool-patches] [PATCH v3 4/5] popen/fio: Add ability to run external programs Cyrill Gorcunov
2019-12-11  9:28 ` [Tarantool-patches] [PATCH v3 5/5] test: Add app/popen test Cyrill Gorcunov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox