- 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
pull/1/head
John Tsiombikas 2009-06-15 21:33:56 +00:00
rodzic adc5366783
commit 118a1ea467
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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);