tty: Don't try to restore controlling terminal via ptmx
tty: Don't try to restore controlling terminal via ptmx

The slave peer should be restoring the controlling terminal.
It works for most of programs but need some more investigation
in future.

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

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