Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7366 in orxonox.OLD


Ignore:
Timestamp:
Apr 25, 2006, 3:24:29 PM (19 years ago)
Author:
rennerc
Message:

fixed bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/signals/src/util/signal_handler.cc

    r7361 r7366  
    9696      exit(0);
    9797    }
    98     dup2( fd[0], STDIN_FILENO );
     98   
    9999    char command[256];
    100100    if ( getInstance()->type == GDB_RUN_WRITE_TO_FILE )
     101    {
     102      dup2( fd[0], STDIN_FILENO );
    101103      snprintf( command, 255, "gdb -p %d %s 1>" GDB_BT_FILE " 2>&1", pid, getInstance()->appName.c_str() );
     104    }
    102105    else
    103106      snprintf( command, 255, "gdb -p %d %s", pid, getInstance()->appName.c_str() );
Note: See TracChangeset for help on using the changeset viewer.