summaryrefslogtreecommitdiff
path: root/libvxi11client/libvxi11client.c
diff options
context:
space:
mode:
authordaniel <danieruru@gmail.com>2013-01-11 19:13:47 +0900
committerdaniel <danieruru@gmail.com>2013-01-11 19:13:47 +0900
commitee9fe4fa6339dc1e49a4d484f9f03d4091c6aa90 (patch)
treec9aa3f25c7fadc0b6f9620673a55e31113403d3d /libvxi11client/libvxi11client.c
parent7d4fa5278ace3dd96dda1bf4da75d617fd3e2795 (diff)
most of it seems to work in perl now
Diffstat (limited to 'libvxi11client/libvxi11client.c')
-rw-r--r--libvxi11client/libvxi11client.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libvxi11client/libvxi11client.c b/libvxi11client/libvxi11client.c
index fb37dbc..ff8f86f 100644
--- a/libvxi11client/libvxi11client.c
+++ b/libvxi11client/libvxi11client.c
@@ -435,8 +435,11 @@ int vxi11_create_intr_chan() {
unsigned int port = -1;
g_thread_init(NULL);
interruptthread = g_thread_create(interruptthreadfunc, &port, true, NULL);
+ if (interruptthread == NULL)
+ return 0;
while (port == -1) { // spin
+ usleep(200);
};
struct sockaddr_in myaddress;