diff options
author | dscho <dscho> | 2001-09-29 14:55:25 +0000 |
---|---|---|
committer | dscho <dscho> | 2001-09-29 14:55:25 +0000 |
commit | 58031bcb768f927d18ce7f781feff528855eefbd (patch) | |
tree | 540e869b70b30c8aef5db7e6d5000724cddcf4d3 /sockets.c | |
parent | 25697e82162be3ebd449ba0eaca61e26916ee95d (diff) | |
download | libvncserver-58031bcb768f927d18ce7f781feff528855eefbd.zip libvncserver-58031bcb768f927d18ce7f781feff528855eefbd.tar.gz |
more pthread debugging
Diffstat (limited to 'sockets.c')
-rw-r--r-- | sockets.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -252,10 +252,14 @@ void rfbCloseClient(cl) rfbClientPtr cl; { + pthread_mutex_lock(&cl->updateMutex); FD_CLR(cl->sock,&(cl->screen->allFds)); - rfbClientConnectionGone(cl); close(cl->sock); cl->sock = -1; + pthread_cond_signal(&cl->updateCond); + pthread_mutex_lock(&cl->updateMutex); + rfbClientConnectionGone(cl); + pthread_mutex_unlock(&cl->updateMutex); } |