Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ProcManager: SetAsChild drops inherited IPC sockets
Workers only need to inherit the minimum amount necessary from the parent ProcManager. Keeping the socket of unrelated workers in each worker is wasteful and may contribute to premature resource exhaustion. Additionally, we will be using Danga::Socket in more (possibly all) workers, not just the Monitor and Reaper. Resetting in workers that do not use Danga::Socket is harmless and will not allocate epoll/kqueue descriptors until the worker actually uses Danga::Socket.
- Loading branch information