> > i dont like those semantics either - will verify whether thread-specific
> > exec() works via a helper thread (or vfork) - it really should.
>
> As long as it works with something sane (and vfork() is sane), I'm happy
> with the posix behaviour by default. [...]
yes - the default case is very similar to that: exec() works for a
1-member thread_group, otherwise i couldnt have booted the kernel.
> [...] After all, the execve() really _does_ need to "de-thread" anyway,
> and if we need to make that explicit (with the vfork()) then that's
> fine.
ok. libpthreads uses an internal clone() for posix_spawn() [which does
what your example illustrates] which should be a tad faster than vfork() -
but vfork() should work just as well.
Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/