diff options
Diffstat (limited to 'libvxi11client/libvxi11client.c')
-rw-r--r-- | libvxi11client/libvxi11client.c | 3 |
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; |