From Clemens Hopfer <datacop@inode.at>: dot_draw plugin: close the connection after...
authorHannes Gredler <hannes@gredler.at>
Tue, 19 Feb 2008 21:58:52 +0000 (22:58 +0100)
committerHannes Gredler <hannes@gredler.at>
Tue, 19 Feb 2008 21:58:52 +0000 (22:58 +0100)
lib/dot_draw/src/olsrd_dot_draw.c

index 666350d..739c0bc 100644 (file)
@@ -267,6 +267,7 @@ ipc_action(int fd __attribute__((unused)))
     return;
   }
   olsr_printf(1, "(DOT DRAW)IPC: Connection from %s\n", inet_ntoa(pin.sin_addr));
+  close(ipc_connection); /* close connection after one output */
   pcf_event(1, 1, 1);
 }