asio icon indicating copy to clipboard operation
asio copied to clipboard

support release() on pipes

Open vinipsmaker opened this issue 2 years ago • 1 comments

Pipes on their own are not very useful. You either inherit a pipe (e.g. stdin, stdout, stderr), or create new pipes to be sent over (e.g. fork(), SCM_RIGHTS), and then use them as part of some IPC layout.

We have assign() to create new pipes from received fds (e.g. SCM_RIGHTS), but there's no corresponding release() to get a pipe end created from Boost.Asio and sending it over to other processes.

release() is missing.

Other Boost.Asio IO objects have the release() method.

vinipsmaker avatar Apr 23 '22 14:04 vinipsmaker

Related issue: https://github.com/chriskohlhoff/asio/issues/810

vinipsmaker avatar Apr 23 '22 14:04 vinipsmaker

Fixed on Boost 1.80

vinipsmaker avatar Dec 24 '22 00:12 vinipsmaker