[CRIU] [PATCH v2] criu: don't use a glibc cached pid
Dmitry Safonov
0x7f454c46 at gmail.com
Tue Mar 28 02:57:58 PDT 2017
2017-03-28 7:30 GMT+03:00 Andrei Vagin <avagin at openvz.org>:
> From: Andrei Vagin <avagin at virtuozzo.com>
>
> In glibc 2.24, getpid() returns a parent PID, if a child was created
> with the CLONE_VM flag.
>
> https://sourceware.org/bugzilla/show_bug.cgi?id=17214
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=857909
>
> The glibc git contains the next patch, which removes cached pid too:
> commit c579f48edba88380635ab98cb612030e3ed8691e
> Author: Adhemerval Zanella <adhemerval.zanella at linaro.org>
> Date: Mon Oct 10 15:08:39 2016 -0300
>
> Remove cached PID/TID in clone
>
> Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
Reviewed-by: Dmitry Safonov <dsafonov at virtuozzo.com>
--
Dmitry
More information about the CRIU
mailing list