sig: Don't reset CHLD handler to old action, DFL it
sig: Don't reset CHLD handler to old action, DFL it

The whole idea behind this code was to stop receiving CHLD from
restored tasks after resume. The comment about this is done for
scripts is wrong (we call more scripts before this) because
sigchld_handler() knows about scripts:

commit de71bc69170cfeceb24bddd431ad10b8ea607d42
	 exit = (siginfo->si_code == CLD_EXITED);
	 status = siginfo->si_status;
	+
	+       /* skip scripts */
	+       if (!current && root_item->pid.real != pid) {
	+               pid = waitpid(root_item->pid.real, &status, WNOHANG);
	+               if (pid <= 0)
	+                       return;
	+       }

And since CHLD handler makes little sence after exec, it's easier
just to reset one to default action at the end.

Signed-off-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@parallels.com>
Acked-by: Andrew Vagin <74c05afa918858348d6db8037d82fa8124870113@parallels.com>

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