restore: restore pgid in two phases
restore: restore pgid in two phases

As described in the previous patch, process group leaders are restored in
the first phase, then all other processes restores pgid.

Signed-off-by: Andrey Vagin <74c05afa918858348d6db8037d82fa8124870113@openvz.org>
Signed-off-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@parallels.com>

gablg1/criu,wtf42/criu,wtf42/criu,KKoukiou/criu-remote,ldu4/criu,biddyweb/criu,efiop/criu,AuthenticEshkinKot/criu,eabatalov/criu,svloyso/criu,marcosnils/criu,gonkulator/criu,AuthenticEshkinKot/criu,wtf42/criu,ldu4/criu,wtf42/criu,ldu4/criu,ldu4/criu,kawamuray/criu,sdgdsffdsfff/criu,biddyweb/criu,biddyweb/criu,fbocharov/criu,sdgdsffdsfff/criu,tych0/criu,fbocharov/criu,efiop/criu,rentzsch/criu,LK4D4/criu,biddyweb/criu,rentzsch/criu,gonkulator/criu,rentzsch/criu,eabatalov/criu,LK4D4/criu,gonkulator/criu,tych0/criu,sdgdsffdsfff/criu,gonkulator/criu,wtf42/criu,LK4D4/criu,gablg1/criu,gablg1/criu,LK4D4/criu,svloyso/criu,tych0/criu,fbocharov/criu,gonkulator/criu,tych0/criu,KKoukiou/criu-remote,marcosnils/criu,tych0/criu,efiop/criu,sdgdsffdsfff/criu,eabatalov/criu,AuthenticEshkinKot/criu,marcosnils/criu,gablg1/criu,AuthenticEshkinKot/criu,KKoukiou/criu-remote,svloyso/criu,rentzsch/criu,KKoukiou/criu-remote,gonkulator/criu,kawamuray/criu,AuthenticEshkinKot/criu,kawamuray/criu,fbocharov/criu,ldu4/criu,rentzsch/criu,KKoukiou/criu-remote,biddyweb/criu,sdgdsffdsfff/criu,AuthenticEshkinKot/criu,kawamuray/criu,gablg1/criu,kawamuray/criu,efiop/criu,svloyso/criu,wtf42/criu,svloyso/criu,sdgdsffdsfff/criu,marcosnils/criu,ldu4/criu,marcosnils/criu,biddyweb/criu,eabatalov/criu,gablg1/criu,LK4D4/criu,LK4D4/criu,eabatalov/criu,tych0/criu,eabatalov/criu,fbocharov/criu,marcosnils/criu,fbocharov/criu,kawamuray/criu,svloyso/criu,efiop/criu,KKoukiou/criu-remote,rentzsch/criu,efiop/criu