Skip to content

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

Closed
Tracked by #5096
TarantoolBot opened this issue Aug 7, 2023 · 0 comments · Fixed by #5101 or #5103
Closed
Tracked by #5096

Document inherit_fds option of popen.new #3609

TarantoolBot opened this issue Aug 7, 2023 · 0 comments · Fixed by #5101 or #5103
Assignees
Labels
3.0 feature A new functionality reference [location] Tarantool manual, Reference part

Comments

@TarantoolBot
Copy link
Collaborator

TarantoolBot commented Aug 7, 2023

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 be
left open in the child process if the close_fds flag is set. If the
close_fds flag isn't set, the option has no effect because in this
case 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, using socket.socketpair.
Requested by @locker in tarantool/tarantool@bfd3305.

@xuniq xuniq self-assigned this Aug 9, 2023
@xuniq xuniq added reference [location] Tarantool manual, Reference part 3.0 feature A new functionality labels Aug 9, 2023
@xuniq xuniq removed their assignment Aug 10, 2023
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
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 AArdeev linked a pull request May 13, 2025 that will close this issue
AArdeev added a commit that referenced this issue May 13, 2025
Correct inherit.fds typo (change dot to underscore)
Fixes #3609 and #4174
AArdeev added a commit that referenced this issue May 13, 2025
* Fix "Since version" links format 
* Correct inherit.fds typo (change dot to underscore)

Fixes #3609 and #4174
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.0 feature A new functionality reference [location] Tarantool manual, Reference part
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants