This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/14808] vfork, follow-fork child, detach-on-fork on, child execs, parent changes executable too (but should not)


https://sourceware.org/bugzilla/show_bug.cgi?id=14808

--- Comment #2 from Don Breazeal <donbreazeal at gmail dot com> ---
There's a relevant comment in linux-nat.c:linux_child_follow_fork, right after
the parent is detached:

      else if (detach_fork)
        target_detach (NULL, 0);

      /* Note that the detach above makes PARENT_INF dangling.  */

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]