diff options
author | runge <runge> | 2006-11-13 15:33:00 +0000 |
---|---|---|
committer | runge <runge> | 2006-11-13 15:33:00 +0000 |
commit | 4a83f87609b9d53b2983806be58ccd02498a5cd3 (patch) | |
tree | a79c96930a97fb162edd1765adece43425f8db8a /x11vnc/cleanup.c | |
parent | 5f9693d4a2c511f8f2ea069373807c5f36ac1459 (diff) | |
download | libtdevnc-4a83f876.tar.gz libtdevnc-4a83f876.zip |
x11vnc: Native Mac OS X support.
Diffstat (limited to 'x11vnc/cleanup.c')
-rw-r--r-- | x11vnc/cleanup.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/x11vnc/cleanup.c b/x11vnc/cleanup.c index 38edec3..bd0d91f 100644 --- a/x11vnc/cleanup.c +++ b/x11vnc/cleanup.c @@ -126,6 +126,18 @@ void clean_up_exit (int ret) { ssl_helper_pid(0, 0); /* killall */ } +#ifdef MACOSX + if (client_connect_file) { + if (strstr(client_connect_file, "/tmp/x11vnc-macosx-channel.") + == client_connect_file) { + unlink(client_connect_file); + } + } + if (! dpy) { + macosxCG_fini(); + } +#endif + if (! dpy) exit(ret); /* raw_rb hack */ /* X keyboard cleanups */ |