summaryrefslogtreecommitdiffstats
path: root/x11vnc/cleanup.c
diff options
context:
space:
mode:
authorrunge <runge@karlrunge.com>2010-12-29 10:05:52 -0500
committerrunge <runge@karlrunge.com>2010-12-29 10:05:52 -0500
commit596331a5c3124f080cdcbb400c188c095048ef35 (patch)
tree66eb904b6c0181703d8f3c9ec81352a970d52601 /x11vnc/cleanup.c
parent0c03b989407f9e5ea66b403011baaaad09fcd536 (diff)
downloadlibtdevnc-596331a5c3124f080cdcbb400c188c095048ef35.tar.gz
libtdevnc-596331a5c3124f080cdcbb400c188c095048ef35.zip
x11vnc: Use opengl to read screen on macosx. non-deprecated macosx interfaces for input injection.
Diffstat (limited to 'x11vnc/cleanup.c')
-rw-r--r--x11vnc/cleanup.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/x11vnc/cleanup.c b/x11vnc/cleanup.c
index 232311c..60db819 100644
--- a/x11vnc/cleanup.c
+++ b/x11vnc/cleanup.c
@@ -190,6 +190,15 @@ void clean_up_exit(int ret) {
shutdown_uinput();
+ if (unix_sock) {
+ if (unix_sock_fd >= 0) {
+ rfbLog("deleting unix sock: %s\n", unix_sock);
+ close(unix_sock_fd);
+ unix_sock_fd = -1;
+ unlink(unix_sock);
+ }
+ }
+
if (! dpy) { /* raw_rb hack */
if (rm_flagfile) {
unlink(rm_flagfile);