#119 closed defect (fixed)
libc: logging stops in fork() child after libc data segment copying
Reported by: | bird | Owned by: | bird |
---|---|---|---|
Priority: | normal | Milestone: | libc-0.6.2 |
Component: | libc-backend | Version: | 0.6.1 |
Severity: | normal | Keywords: | log fork |
Cc: |
Description
There are two problems here. First, why do we get a different file handle for the log in the child? Second, we're gambling that the log mutex and file handles match the parent.
The latter problem is solved by reallocating the child handles to match the parent ones very early in the fork process.
The former problem is answered by DosDupHandle()
always clearing the non-inherit bit.
Note:
See TracTickets
for help on using tickets.
(In [2796]) Fixed log problem in fork() child. Fixes #119.