• Tycho Andersen's avatar
    restore: use less convoluted method to calculate the number of zombies · a07a1724
    Tycho Andersen authored
    Instead of doing this crazy thing where we pass the number of zombies back
    from the restorer blob to the main restore thread, let's just calculate the
    number in the main restore thread when we need it.
    
    Also, note that this patch shifts the location of this calculation: we used
    to do a decrement of nr_in_progress when we waited() on a zombie, to sort
    of lie about the fact that they did go through CR_STATE_RESTORE_SIGCHLD,
    but since we're waiting on them anyway explicitly, there's no reason to do
    all this hackery. Let's just calculate the number once in the right place
    and be done with it.
    Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    a07a1724
Name
Last commit
Last update
Documentation Loading commit data...
contrib Loading commit data...
coredump Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
lib Loading commit data...
scripts Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...