Replies: 1 comment
-
It's a good idea. Unfortunately however, PHP doesn't support setting In the meantime, you may technically build a custom That said, even if this flag was exposed, there's a high chance you may not be able to rely on all your dependencies and extensions to always set this flag reliably. As an alternative, you can also prevent inheriting FDs by closing any excessive file descriptors just before spawning/ As you can see, many options and I hope this helps! 👍 If so, consider supporting this project, for example by becoming a sponsor ❤️ |
Beta Was this translation helpful? Give feedback.
-
Perhaps I've just been blind, and missed something in the documentation, but for the live of me I can't seem to find a way to set close on exec on Sockets.
It would be nice to be able to set sockets to close on exec, to prevent child processes and other forks of inheriting sockets.
Beta Was this translation helpful? Give feedback.
All reactions