Opened 15 years ago

Closed 15 years ago

#4642 closed enhancement (fixed)

disable_debugger() flag isn't passed on to forked children

Reported by: augiedoggie Owned by: axeld
Priority: normal Milestone: R1
Component: System/Kernel Version:
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

I'm not sure if this was a design decision or if it is just a bug/missing feature. I would like to be able to call disable_debugger() before a fork()/execvp() and have the debugger disabled for the child process also.

Attachments (1)

fork_test.zip (2.0 KB ) - added by augiedoggie 15 years ago.
Test Code

Download all attachments as: .zip

Change History (4)

comment:1 by augiedoggie, 15 years ago

Version: R1/alpha1

by augiedoggie, 15 years ago

Attachment: fork_test.zip added

Test Code

comment:2 by augiedoggie, 15 years ago

I attached some sample code which illustrates what I'm looking for. I should note that this isn't for me. My code never crashes :)

This is actually for the CMake developers. CMake includes a test runner called 'ctest'. They want to be able to call disable_debugger() inside of ctest and have that passed on to the program being tested. They are already doing something like this for windows(apparently windows passes on this attribute to the children).

comment:3 by bonefish, 15 years ago

Resolution: fixed
Status: newclosed

Fixed in hrev33330.

Note: See TracTickets for help on using tickets.