summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0faa9b5)
raw | patch | inline | side by side (parent: 0faa9b5)
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) |
program/src/rrd_daemon.c | patch | blob | history |
index a94e0794f649a9b323bf4bd42973b75d00d5d929..f1221e3e3cb347ba8155b59840c37e127a2880dd 100644 (file)
--- a/program/src/rrd_daemon.c
+++ b/program/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)
{