[zeromq-dev] Best Way to close ZeroMQ sockets in a fork child process

Jithendra Reddy jithendra.reddy at gmail.com
Tue Mar 17 09:17:03 CET 2015


Hi,

What is the best way to automatically close all the parent socket file
descriptors in a child process after doing fork and exec?

In our application, we fork process at two levels, and we use ZeroMQ
scokets at each level. We notice that socket  file descriptors are being
copied to child process and at some point during stress test, tcp ports are
blocked. May be due to increased number of open socket descriptors.

Regards,
Jithendra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20150317/0f1af585/attachment.htm>


More information about the zeromq-dev mailing list