Commit 1e1d0dde authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by Andrei Vagin

pycriu: Dont produce zombies

When running criu_dump() with zero pid (self dump) a zombie
from the library is left underneath the running processes
and this zombie is thus written into the images.
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 58c1309a
......@@ -113,6 +113,9 @@ class _criu_comm_bin(_criu_comm):
os._exit(0)
else:
exec_criu()
else:
if daemon:
os.waitpid(p, 0)
css[0].close()
self.swrk = struct.unpack('i', css[1].recv(4))[0]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment