[mw-devel] MW3 r1280 - in trunk/src: . server

arthur at sucs.org arthur at sucs.org
Thu Nov 8 10:45:07 GMT 2012


Author: arthur
Date: 2012-11-08 10:45:07 +0000 (Thu, 08 Nov 2012)
New Revision: 1280

Modified:
   trunk/src/ipc.c
   trunk/src/server/servsock.c
Log:
initialise connection_t properly, and attempt reconnect on every text send


Modified: trunk/src/ipc.c
===================================================================
--- trunk/src/ipc.c	2012-11-08 09:36:58 UTC (rev 1279)
+++ trunk/src/ipc.c	2012-11-08 10:45:07 UTC (rev 1280)
@@ -143,6 +143,8 @@
 		return 0;
 	}
 
+	ipc_check();
+
 	while (read(who_fd, &who, sizeof(who)) > 0) {
 		if (who.posn < 0) continue;
 		if (who.pid  <= 0) continue;

Modified: trunk/src/server/servsock.c
===================================================================
--- trunk/src/server/servsock.c	2012-11-08 09:36:58 UTC (rev 1279)
+++ trunk/src/server/servsock.c	2012-11-08 10:45:07 UTC (rev 1280)
@@ -81,6 +81,8 @@
 	/* add to list of all connections */
 	list_add_tail(&(new->list), &connection_list);
 
+	INIT_LIST_HEAD(&(new->outq));
+
 	/* register interest in read events */
 	struct epoll_event ev;
 	bzero(&ev, sizeof(ev));




More information about the mw-devel mailing list