tis 2010-02-23 klockan 15:52 +0100 skrev Kinkie: > This bug http://sources.redhat.com/bugzilla/show_bug.cgi?id=10354 > shows that in glibc many cases posix_spawn() is exactly a wrapper for > (v)fork/exec . > So it is no worse than fork/exec, may be as good as vfork/exec > depending on the conditions, but not any better than it.
Hard to get much better than vfork+exec in terms of performance.. but implementing vfork+exec has it's hairy parts and is why posix_spawn is better even if it ends up being just vfork+exec. additionally performance isn't really a big issue here, avoiding the swap usage explosion is the main reason why touching any of this. Regards Henrik
