-
Notifications
You must be signed in to change notification settings - Fork 43
Document inherit_fds
option of popen.new
#3609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
AArdeev
added a commit
that referenced
this issue
May 12, 2025
Since version 3.2.0, the ``inherit.fds`` option is added to the ``opts`` table. The option allows define file descriptor numbers that should be left open in the child process if the close_fds flag is set to ``true``. Fixes #3609
AArdeev
added a commit
that referenced
this issue
May 13, 2025
AArdeev
added a commit
that referenced
this issue
May 13, 2025
Since version 3.2.0, the ``inherit.fds`` option is added to the ``opts`` table. The option allows define file descriptor numbers that should be left open in the child process if the close_fds flag is set to ``true``. Fixes #3609
AArdeev
added a commit
that referenced
this issue
May 13, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Product: Tarantool
Since: 3.0
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/popen/#popen-new
SME: @ locker
Details
The new
inherit_fds
option takes an array of file descriptor numbers that should beleft open in the child process if the
close_fds
flag is set. If theclose_fds
flag isn't set, the option has no effect because in thiscase none of the parent's file descriptors are closed anyway.
The option may be useful for establishing a communication channel
between a Tarantool instance and a process spawned by it with
popen.new
, for example, usingsocket.socketpair
.Requested by @locker in tarantool/tarantool@bfd3305.
The text was updated successfully, but these errors were encountered: