summaryrefslogtreecommitdiffstats
path: root/x11vnc/cleanup.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/cleanup.c')
-rw-r--r--x11vnc/cleanup.c4
1 files changed, 4 insertions, 0 deletions
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) {