• 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
rst_info.h 1.28 KB