Author: steve-guest
Date: 2012-06-27 05:56:06 +0000 (Wed, 27 Jun 2012)
New Revision: 13737

Modified:
   packages/trunk/xmoto/debian/changelog
   packages/trunk/xmoto/debian/patches/sa_restorer-removal.patch
Log:
Use better sa_restorer patch provided by Pino Toscano.

Modified: packages/trunk/xmoto/debian/changelog
===================================================================
--- packages/trunk/xmoto/debian/changelog       2012-06-26 19:38:43 UTC (rev 
13736)
+++ packages/trunk/xmoto/debian/changelog       2012-06-27 05:56:06 UTC (rev 
13737)
@@ -1,3 +1,10 @@
+xmoto (0.5.9+dfsg-3) unstable; urgency=low
+
+  * Pino Toscano provided a better patch to remove the use of sa_restorer,
+    thanks! (Closes: #674636.)
+
+ -- Stephen Kitt <st...@sk2.org>  Sat, 26 May 2012 20:31:17 +0200
+
 xmoto (0.5.9+dfsg-2) unstable; urgency=low
 
   * Remove reference to sa_restorer which is deprecated generally and

Modified: packages/trunk/xmoto/debian/patches/sa_restorer-removal.patch
===================================================================
--- packages/trunk/xmoto/debian/patches/sa_restorer-removal.patch       
2012-06-26 19:38:43 UTC (rev 13736)
+++ packages/trunk/xmoto/debian/patches/sa_restorer-removal.patch       
2012-06-27 05:56:06 UTC (rev 13737)
@@ -1,16 +1,20 @@
 Description: sa_restorer isn't defined in POSIX and is being removed
-Author: Stephen Kitt <st...@sk2.org>
-Bug: http://todo.xmoto.tuxfamily.org/index.php?do=details&task_id=805
+Author: Pino Toscano <p...@debian.org>
+Bug: http://todo.xmoto.tuxfamily.org/index.php?do=details&task_id=806
 
 --- xmoto-0.5.9+dfsg.orig/src/GameInit.cpp
 +++ xmoto-0.5.9+dfsg/src/GameInit.cpp
-@@ -269,9 +269,6 @@
+@@ -268,12 +268,9 @@ void GameApp::run_load(int nNumArgs, cha
+   if(v_xmArgs.isOptServerOnly()) {
      struct sigaction v_act;
  
++    memset(&v_act, 0, sizeof(struct sigaction));
      v_act.sa_handler  = xmexit_term;
 -#if !defined(__APPLE__) && !defined(__FreeBSD__)
 -    v_act.sa_restorer = NULL;
 -#endif
      sigemptyset(&v_act.sa_mask);
-     v_act.sa_flags = 0;
+-    v_act.sa_flags = 0;
  
+     if(sigaction(SIGTERM, &v_act, NULL) != 0) {
+       LogWarning("sigaction failed");


_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to