From 81ef0b9345dd393fea8edab879ee1fd8f0bf9e81 Mon Sep 17 00:00:00 2001 From: runge Date: Sat, 27 Oct 2007 22:45:30 +0000 Subject: x11vnc: -proxy, -ssh options. ncache bug in -8to24, Selection "targets" bugfix. --- x11vnc/cleanup.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'x11vnc/cleanup.c') diff --git a/x11vnc/cleanup.c b/x11vnc/cleanup.c index 2ce62a8..e8d0c63 100644 --- a/x11vnc/cleanup.c +++ b/x11vnc/cleanup.c @@ -133,6 +133,10 @@ void clean_up_exit (int ret) { if (avahi) { avahi_cleanup(); } + if (ssh_pid > 0) { + kill(ssh_pid, SIGTERM); + ssh_pid = 0; + } #ifdef MACOSX if (client_connect_file) { -- cgit v1.2.3