[Orxonox-commit 3082] r7776 - code/branches/network5/src/libraries/util

scheusso at orxonox.net scheusso at orxonox.net
Fri Dec 17 20:26:36 CET 2010


Author: scheusso
Date: 2010-12-17 20:26:35 +0100 (Fri, 17 Dec 2010)
New Revision: 7776

Modified:
   code/branches/network5/src/libraries/util/SignalHandler.cc
Log:
this should fix problems on linux versions other than ubuntu 10.10


Modified: code/branches/network5/src/libraries/util/SignalHandler.cc
===================================================================
--- code/branches/network5/src/libraries/util/SignalHandler.cc	2010-12-17 13:22:00 UTC (rev 7775)
+++ code/branches/network5/src/libraries/util/SignalHandler.cc	2010-12-17 19:26:35 UTC (rev 7776)
@@ -36,7 +36,6 @@
 #include <iostream>
 #include <cstdlib>
 #include <cstring>
-#include <sys/prctl.h>
 
 #include "Debug.h"
 
@@ -51,6 +50,7 @@
 #include <X11/Xlib.h>
 #include <X11/Xutil.h>
 #include <X11/keysym.h>
+#include <sys/prctl.h>
 
 namespace orxonox
 {
@@ -202,8 +202,10 @@
         getInstance().dontCatch();
         
         // make sure gdb is allowed to attach to our PID even if there are some system restrictions
+#ifdef PR_SET_PTRACER
         if( prctl(PR_SET_PTRACER, gdbPid, 0, 0, 0) == -1 )
           COUT(0) << "could not set proper permissions for GDB to attach to process..." << endl;
+#endif
         
         // wait for message from parent when it has attached gdb
         int someData;




More information about the Orxonox-commit mailing list