diff options
author | runge <runge@karlrunge.com> | 2010-09-10 14:26:58 -0400 |
---|---|---|
committer | runge <runge@karlrunge.com> | 2010-09-10 14:26:58 -0400 |
commit | 067a88160c994e364ebb23900228633b84f99e91 (patch) | |
tree | af2b04b5a044482e35fce85bc48b5504f5e8a2ea /x11vnc/cleanup.c | |
parent | ad254469783b4720db64d8ebeeb12aeb0533e542 (diff) | |
download | libtdevnc-067a88160c994e364ebb23900228633b84f99e91.tar.gz libtdevnc-067a88160c994e364ebb23900228633b84f99e91.zip |
update to x11vnc 0.9.12
Diffstat (limited to 'x11vnc/cleanup.c')
-rw-r--r-- | x11vnc/cleanup.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/x11vnc/cleanup.c b/x11vnc/cleanup.c index e9222b5..4ecef42 100644 --- a/x11vnc/cleanup.c +++ b/x11vnc/cleanup.c @@ -165,9 +165,6 @@ void clean_up_exit(int ret) { ssl_helper_pid(0, 0); /* killall */ } - if (avahi) { - avahi_cleanup(); - } if (ssh_pid > 0) { kill(ssh_pid, SIGTERM); ssh_pid = 0; @@ -242,6 +239,11 @@ void clean_up_exit(int ret) { rm_flagfile = NULL; } + if (avahi) { + avahi_cleanup(); + fflush(stderr); + } + exit(ret); } |