Opened 18 years ago
Closed 18 years ago
#167 closed defect (fixed)
libc: __spawnve should wait for children to finish the inheriting
Reported by: | bird | Owned by: | bird |
---|---|---|---|
Priority: | normal | Milestone: | libc-0.6.3 |
Component: | libc-backend | Version: | 0.6 |
Severity: | normal | Keywords: | spawn exec inherit |
Cc: |
Description
There is a race between parent and child processes when it comes to closing of tcpip handles. The parent should therefore wait a little while so that the child can finish processing the inherit data passed thru SPM.
In a future version of SPM, an event should be sent to the parent when the inherit stuff is done so it can resume quickly. For 0.6 we'll have to poll the SPM process structure for the child and take care to avoid SMP cache issues.
Note:
See TracTickets
for help on using tickets.
(In [3373]) Wait for spawned/execed child so it can finish inherting us. Close file handles on exec. Fixes #168.Fixes #167.