summaryrefslogtreecommitdiff
path: root/src/ip.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-09-02 15:34:12 +0200
committerMartin Sustrik <sustrik@250bpm.com>2011-09-02 15:34:12 +0200
commit8b7ac4c2a9c3ede95d6f5f9717a1939a23788964 (patch)
tree9afa85cda119a35f2dcd18eb7ff77e92cb8bd78a /src/ip.hpp
parent2910a728dc777068e6ae7f67041da185b0865171 (diff)
Close file descriptors on exec (issue 218)
When exec is executed to start a different process image old 0MQ file descriptors could stay open, thus blocking TCP ports and alike. This patch should solve the problem. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/ip.hpp')
-rw-r--r--src/ip.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ip.hpp b/src/ip.hpp
index f1a1668..d8553de 100644
--- a/src/ip.hpp
+++ b/src/ip.hpp
@@ -26,6 +26,9 @@
namespace zmq
{
+ // Same as socket(2), but allows for transparent tweaking the options.
+ fd_t open_socket (int domain_, int type_, int protocol_);
+
// Tunes the supplied TCP socket for the best latency.
void tune_tcp_socket (fd_t s_);