restorer: Change endless loop to sys_exit in case of error
restorer: Change endless loop to sys_exit in case of error

If an error happens during late restore stage, we better
exit with error than dive into endless loop.

The loop was useful at early prototype times,
but not now when we use zdtm test suite.

For example, force injected error now reports

 | Restoring EXE (/home/crtools/test/zdtm/live/static/selfexe00)
 | 764
 | 11308
 | Error (cr-restore.c:1280): 11308 exited, status=255
 | Error (cr-restore.c:1412): Someone can't be restored

which is a way better than silent loop.

Reported-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@parallels.com>
Signed-off-by: Cyrill Gorcunov <7a1ea01eee6961eb1e372e3508c2670446d086f4@openvz.org>
Acked-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@parallels.com>

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