Re: Fw: Re: [PATCH][RFC] Remove CLONE_FILES from init kernel thread creation

From: Rusty Russell
Date: Tue Nov 18 2003 - 18:12:14 EST


In message <20031117133240.04e9c8e8.akpm@xxxxxxxx> you write:
>
> Rusty? Any idea why call_usermodehelper() uses CLONE_FILES?

Your guess is correct about consolidation. But there is no bug
AFAICT.

The "normal" (non-waiting case) uses "CLONE_VFORK | SIGCHLD". The
"waiting" case uses "CLONE_KERNEL", but then that thread does another
fork with just "SIGCHLD".

ie. the actual thread which does the exec never uses CLONE_FILES.

Hope that clarifies,
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/