From 118a1ea4673e6d691cb84be8f71aa6ecc2086582 Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Mon, 15 Jun 2009 21:33:56 +0000 Subject: [PATCH] - placed close_x11 between USE_X11 ifdefs git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@82 ef983eb1-d774-4af8-acfd-baaf7b16a646 --- spnavd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spnavd.c b/spnavd.c index ab0b2a8..921a486 100644 --- a/spnavd.c +++ b/spnavd.c @@ -1045,7 +1045,9 @@ void sig_handler(int s) fprintf(stderr, "Segmentation fault caught, trying to exit gracefully\n"); case SIGINT: case SIGTERM: +#ifdef USE_X11 close_x11(); /* call to avoid leaving garbage in the X server's root windows */ +#endif close_dev(); remove(PIDFILE); exit(0);