From 0e75195fd93cb3e4eb0c1e29eca11894edf5c076 Mon Sep 17 00:00:00 2001 From: daniel Date: Thu, 10 Jan 2013 20:13:47 +0900 Subject: remove the sleep --- libvxi11client/libvxi11client.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libvxi11client') diff --git a/libvxi11client/libvxi11client.c b/libvxi11client/libvxi11client.c index 7c7878c..cf57f17 100644 --- a/libvxi11client/libvxi11client.c +++ b/libvxi11client/libvxi11client.c @@ -400,11 +400,12 @@ int vxi11_create_intr_chan() { return 0; interruptchannelopen = true; - u_short port = 0; + u_short port = -1; g_thread_init(NULL); interruptthread = g_thread_create(interruptthreadfunc, &port, true, NULL); - sleep(2); + while (port == -1) { // spin + }; struct sockaddr_in myaddress; get_myaddress(&myaddress); -- cgit