summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f2d480b)
raw | patch | inline | side by side (parent: f2d480b)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 25 Sep 2008 20:11:43 +0000 (20:11 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 25 Sep 2008 20:11:43 +0000 (20:11 +0000) |
src/rrd_daemon.c | patch | blob | history |
diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c
index a94e0794f649a9b323bf4bd42973b75d00d5d929..f1221e3e3cb347ba8155b59840c37e127a2880dd 100644 (file)
--- a/src/rrd_daemon.c
+++ b/src/rrd_daemon.c
{
int fd;
listen_socket_t *temp;
+ int one = 1;
temp = (listen_socket_t *) realloc (listen_fds,
sizeof (listen_fds[0]) * (listen_fds_num + 1));
continue;
}
+ setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one));
+
status = bind (fd, ai_ptr->ai_addr, ai_ptr->ai_addrlen);
if (status != 0)
{