kopia lustrzana https://github.com/FreeSpacenav/spacenavd
- 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-baaf7b16a646pull/1/head
rodzic
adc5366783
commit
118a1ea467
2
spnavd.c
2
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);
|
||||
|
|
Ładowanie…
Reference in New Issue