progs/xdemos: Add assert in corender.c.
authorVinson Lee <vlee@vmware.com>
Fri, 20 Nov 2009 23:03:16 +0000 (15:03 -0800)
committerVinson Lee <vlee@vmware.com>
Fri, 4 Dec 2009 07:22:47 +0000 (23:22 -0800)
(cherry picked from commit 66a4ec14c38d407256545e0cf31c98974d621fe4)

progs/xdemos/corender.c

index f2b8145..1b18d9f 100644 (file)
@@ -55,6 +55,7 @@ setup_ipc(void)
 
       printf("Waiting for connection from another 'corender'\n");
       Sock = AcceptConnection(k);
+      assert(Sock != -1);
 
       printf("Got connection, sending windowID\n");