Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7776 for code


Ignore:
Timestamp:
Dec 17, 2010, 8:26:35 PM (14 years ago)
Author:
scheusso
Message:

this should fix problems on linux versions other than ubuntu 10.10

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network5/src/libraries/util/SignalHandler.cc

    r7775 r7776  
    3737#include <cstdlib>
    3838#include <cstring>
    39 #include <sys/prctl.h>
    4039
    4140#include "Debug.h"
     
    5251#include <X11/Xutil.h>
    5352#include <X11/keysym.h>
     53#include <sys/prctl.h>
    5454
    5555namespace orxonox
     
    203203       
    204204        // make sure gdb is allowed to attach to our PID even if there are some system restrictions
     205#ifdef PR_SET_PTRACER
    205206        if( prctl(PR_SET_PTRACER, gdbPid, 0, 0, 0) == -1 )
    206207          COUT(0) << "could not set proper permissions for GDB to attach to process..." << endl;
     208#endif
    207209       
    208210        // wait for message from parent when it has attached gdb
Note: See TracChangeset for help on using the changeset viewer.