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, 20 Nov 2009 23:03:16 +0000 (15:03 -0800)
progs/xdemos/corender.c

index ca8ee1eed337e00dbf69fa029c14dd5278b06d43..8c7053548292cb5f6f5275ec2c5db7e33034ecb4 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");