Skip to content

Document inherit_fds option of popen.new #3609

@TarantoolBot

Description

@TarantoolBot

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.

Metadata

Metadata

Assignees

Labels

3.0featureA new functionalityreference[location] Tarantool manual, Reference part

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions