Menu

#4 Exit on TERM

open
nobody
None
5
2011-03-08
2011-03-08
No

Rejoystick ignores the TERM signal, which is not good. The README file itself says you have to send the KILL signal with killall -9. The following patch makes rejoystick exit when it is given the TERM signal. Note that it has to be submitted inline because of Sourceforge bugs.

--- backend.c-old 2008-09-23 08:53:17.000000000 -0700
+++ backend.c 2011-03-07 22:08:03.842484535 -0800
@@ -119,6 +119,9 @@
}
XFlush(dpy);
}
+
+ if (key.type == SDL_QUIT)
+ return;
}
}
}

Discussion


Log in to post a comment.