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.

Change History (1)

comment:1 by bird, 18 years ago

Resolution: fixed
Status: newclosed

(In [3373]) Wait for spawned/execed child so it can finish inherting us. Close file handles on exec. Fixes #168.Fixes #167.

Note: See TracTickets for help on using tickets.