Opened 10 years ago

Closed 10 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:
Has a Patch: no 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 10 years ago.
Test Code

Download all attachments as: .zip

Change History (4)

comment:1 Changed 10 years ago by augiedoggie

Version: R1/alpha1

Changed 10 years ago by augiedoggie

Attachment: fork_test.zip added

Test Code

comment:2 Changed 10 years ago by augiedoggie

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 Changed 10 years ago by bonefish

Resolution: fixed
Status: newclosed

Fixed in hrev33330.

Note: See TracTickets for help on using tickets.