Opened 6 years ago
Closed 6 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)
Change History (4)
comment:1 Changed 6 years ago by augiedoggie
- Version R1/alpha1 deleted
Changed 6 years ago by augiedoggie
comment:2 Changed 6 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 6 years ago by bonefish
- Resolution set to fixed
- Status changed from new to closed
Fixed in hrev33330.

Test Code