Quoting Christian Seiler (christ...@iwakd.de):
> Because of an assertion in glibc's fork() wrapper that parent pid and
> pid of child should never be the same, one should avoid fork() after
> attaching to a PID namespace, since the pid inside the namespace may
> coincide with the pid of the parent outside the namespace, thus hitting
> the aforementioned assertion.
> 
> This patch just changes the code in the most simple manner to use
> clone() instead of fork(). Since clone() requires a function to be
> called instead of returning 0, we move the code of the child into a
> function child_main.
> 
> Signed-off-by: Christian Seiler <christ...@iwakd.de>

Thanks, Christian.

Acked-by: Serge E. Hallyn <serge.hal...@ubuntu.com>

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to