User Details
- User Since
- Jun 14 2018, 11:09 AM (305 w, 1 d)
Jun 21 2018
Restore the wrongfully deleted empty line.
Address last comments.
Style & comments
Merge the two parts of set child as traced
Jun 20 2018
I think John' idea was to move the block which sets the has_ptrace_fork variable to true, down to the code which acts on its true value. De-fact, eliminating the var, and removing one if().
Jun 18 2018
Address 2 of the jhb comments.
bool & yet more style issues
address style issues
Jun 16 2018
Removed the now outdated comment in do_fork
Just one more question. I can't figure out why we can't reparent the new proc in do_fork instead of waiting for its thread to do it? Any hint will be appreciated.
I am not sure about your question. Can you point to the exact piece of code which you want to move into do_fork ? If you mean proc_reparent() call from fork_return(), I put it there to have all code dealing with the attaching new child to the debugger, in single place. ptracestop() must be called from the stopping thread context, and proc_reparent() as part of the attachment code is naturally located nearby. But I may be mis-interpreting your question, and also I do not see why you are asking.