lkml.org 
[lkml]   [2002]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] thread-exec-2.5.34-B1, BK-curr

On Sun, 15 Sep 2002, Linus Torvalds wrote:

> > 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/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.053 / U:3.752 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site