On 6/15/23 8:32 PM, Sam James wrote:
Hi,

Sorry if this has come up before - I did take a look and couldn't find
anything.

Could bash use posix_spawn/vfork instead of the rather heavyweight
fork?

I haven't looked at them. Bash does more work between fork and exec than
the posix_spawn implementations I've looked at can manage, so it's not a
real win. I've never looked at vfork because there are a lot of assumptions
baked into the code that the child has its own copies of variables and
other data.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/


Reply via email to